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
20 namespace api\v
4\Entity
;
23 use api\v
4\Api4TestBase
;
28 class RouteTest
extends Api4TestBase
{
30 public function testGet() {
31 $result = Route
::get()->addWhere('path', '=', 'civicrm/admin')->execute();
32 $this->assertEquals(1, $result->count());
34 $result = Route
::get()->addWhere('path', 'LIKE', 'civicrm/admin/%')->execute();
35 $this->assertGreaterThan(10, $result->count());