|
@@ 77-88 (lines=12) @@
|
| 74 |
|
self::assertLoadLocationProperties($data); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
public function testLoadLocationList() |
| 78 |
|
{ |
| 79 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php'); |
| 80 |
|
$handler = $this->getLocationGateway(); |
| 81 |
|
$locationsData = $handler->getNodeDataList([77]); |
| 82 |
|
|
| 83 |
|
self::assertCount(1, $locationsData); |
| 84 |
|
|
| 85 |
|
$locationRow = reset($locationsData); |
| 86 |
|
|
| 87 |
|
self::assertLoadLocationProperties($locationRow); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
public function testLoadInvalidLocation() |
| 91 |
|
{ |
|
@@ 99-112 (lines=14) @@
|
| 96 |
|
$handler->getBasicNodeData(1337); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
public function testLoadLocationDataByContent() |
| 100 |
|
{ |
| 101 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php'); |
| 102 |
|
|
| 103 |
|
$gateway = $this->getLocationGateway(); |
| 104 |
|
|
| 105 |
|
$locationsData = $gateway->loadLocationDataByContent(75); |
| 106 |
|
|
| 107 |
|
self::assertCount(1, $locationsData); |
| 108 |
|
|
| 109 |
|
$locationRow = reset($locationsData); |
| 110 |
|
|
| 111 |
|
self::assertLoadLocationProperties($locationRow); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function testLoadParentLocationDataForDraftContentAll() |
| 115 |
|
{ |
|
@@ 114-127 (lines=14) @@
|
| 111 |
|
self::assertLoadLocationProperties($locationRow); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function testLoadParentLocationDataForDraftContentAll() |
| 115 |
|
{ |
| 116 |
|
$this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php'); |
| 117 |
|
|
| 118 |
|
$gateway = $this->getLocationGateway(); |
| 119 |
|
|
| 120 |
|
$locationsData = $gateway->loadParentLocationsDataForDraftContent(226); |
| 121 |
|
|
| 122 |
|
$this->assertCount(1, $locationsData); |
| 123 |
|
|
| 124 |
|
$locationRow = reset($locationsData); |
| 125 |
|
|
| 126 |
|
self::assertLoadLocationProperties($locationRow); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
public function testLoadLocationDataByContentLimitSubtree() |
| 130 |
|
{ |