We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class ViewNamespacesTest extends BaseCrudPanelTest |
||
| 12 | { |
||
| 13 | public function testAddSingleViewNamespace() |
||
| 14 | { |
||
| 15 | ViewNamespaces::addFor('fields', 'crud::fields'); |
||
| 16 | ViewNamespaces::addFor('fields', 'pro::fields'); |
||
| 17 | $this->assertCount(2, ViewNamespaces::getFor('fields')); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function testAddMultipleViewNamespace() |
||
| 21 | { |
||
| 22 | ViewNamespaces::addFor('fields', ['crud::fields', 'pro::fields']); |
||
| 23 | $this->assertCount(2, ViewNamespaces::getFor('fields')); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testGetWithFallbackFromConfigViewNamespace() |
||
| 31 | } |
||
| 32 | } |
||
| 33 |