4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
22 namespace api\v
4\Entity
;
25 use api\v
4\UnitTestCase
;
30 class RouteTest
extends UnitTestCase
{
32 public function testGet() {
33 $result = Route
::get()->addWhere('path', '=', 'civicrm/admin')->execute();
34 $this->assertEquals(1, $result->count());
36 $result = Route
::get()->addWhere('path', 'LIKE', 'civicrm/admin/%')->execute();
37 $this->assertGreaterThan(10, $result->count());