| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class StoredTest extends CommonTestClass |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @throws PathsException |
||
| 17 | */ |
||
| 18 | public function testBasic(): void |
||
| 19 | { |
||
| 20 | $path = new RoutedPath(new Arrays(['user' => 'bvdbv'])); |
||
| 21 | |||
| 22 | $this->assertEmpty(StoreRouted::getPath()); |
||
| 23 | |||
| 24 | StoreRouted::init($path); |
||
| 25 | $this->assertNotEmpty(StoreRouted::getPath()); |
||
| 26 | $xPath = StoreRouted::getPath(); |
||
| 27 | $this->assertEquals('bvdbv', $xPath->getUser()); |
||
| 28 | } |
||
| 30 |