@@ 56-64 (lines=9) @@ | ||
53 | $this->assertAttributeEquals('/', 'url', $link); |
|
54 | } |
|
55 | ||
56 | public function testGet() |
|
57 | { |
|
58 | $builder = $this->builderFactory(); |
|
59 | ||
60 | $item = $builder->create('test', 'Test', '/test'); |
|
61 | ||
62 | $this->assertEquals($item, $builder->get('test')); |
|
63 | $this->assertEquals(null, $builder->get('notFound')); |
|
64 | } |
|
65 | ||
66 | public function testHas() |
|
67 | { |
|
@@ 82-89 (lines=8) @@ | ||
79 | $this->assertAttributeEquals(Builder::OL, 'type', $builder); |
|
80 | } |
|
81 | ||
82 | public function testAll() |
|
83 | { |
|
84 | $builder = $this->builderFactory(); |
|
85 | ||
86 | $this->assertEquals([], $builder->all()); |
|
87 | $item = $builder->create('test', 'Test', '/test'); |
|
88 | $this->assertEquals(['test' => $item], $builder->all()); |
|
89 | } |
|
90 | ||
91 | public function testForget() |
|
92 | { |