| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class StandardTest extends \PHPUnit\Framework\TestCase |
||
| 13 | { |
||
| 14 | private $object; |
||
| 15 | |||
| 16 | |||
| 17 | protected function setUp() : void |
||
| 18 | { |
||
| 19 | $view = new \Aimeos\Base\View\Standard(); |
||
| 20 | $view->pageSiteItem = new TestSite( 1, 'label1' ); |
||
| 21 | |||
| 22 | $this->object = new \Aimeos\Base\View\Helper\Site\Standard( $view ); |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | protected function tearDown() : void |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | public function testTransform() |
||
| 33 | { |
||
| 34 | $this->assertInstanceOf( '\\Aimeos\\Base\\View\\Helper\\Site\\Iface', $this->object->transform() ); |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | public function testLabel() |
||
| 39 | { |
||
| 40 | $this->assertEquals( 'label1', $this->object->transform()->label() ); |
||
| 41 | } |
||
| 42 | |||
| 43 | |||
| 44 | public function testMatch() |
||
| 45 | { |
||
| 46 | $this->assertEquals( 'label1', $this->object->transform()->match( 1 ) ); |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | public function testReadonly() |
||
| 51 | { |
||
| 52 | $this->assertEquals( 'readonly', $this->object->transform()->readonly( 2 ) ); |
||
| 53 | } |
||
| 54 | |||
| 55 | |||
| 56 | public function testSiteid() |
||
| 59 | } |
||
| 60 | } |
||
| 61 | |||
| 62 | |||
| 63 | class TestSite |
||
| 64 | { |
||
| 84 |