Merge pull request #15309 from totten/master-api4
[civicrm-core.git] / tests / phpunit / api / v4 / Service / Schema / SchemaMapRealTableTest.php
1 <?php
2
3 namespace api\v4\Service\Schema;
4
5 use api\v4\UnitTestCase;
6
7 /**
8 * @group headless
9 */
10 class SchemaMapRealTableTest extends UnitTestCase {
11
12 public function testAutoloadWillPopulateTablesByDefault() {
13 $map = \Civi::container()->get('schema_map');
14 $this->assertNotEmpty($map->getTables());
15 }
16
17 public function testSimplePathWillExist() {
18 $map = \Civi::container()->get('schema_map');
19 $path = $map->getPath('civicrm_contact', 'emails');
20 $this->assertCount(1, $path);
21 }
22
23 }