Skip to content

Commit 86a58af

Browse files
committed
Update tests
1 parent a221080 commit 86a58af

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/StaticEntityBuilderTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,12 @@ public function testIs()
168168
$this->assertTrue($civility->is('mr'));
169169
$this->assertFalse($civility->is('mrs'));
170170
}
171+
172+
public function testGetIds()
173+
{
174+
$builder = new StaticEntityBuilder('\Byscripts\StaticEntity\Tests\Fixtures\Civility');
175+
$ids = $builder->getIds();
176+
177+
$this->assertEquals(array('mr', 'mrs'), $ids);
178+
}
171179
}

tests/StaticEntityTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ public function testIs()
162162
$this->assertFalse($civility->is('mrs'));
163163
}
164164

165+
public function testGetIds()
166+
{
167+
$ids = Civility::getIds();
168+
169+
$this->assertEquals(array('mr', 'mrs'), $ids);
170+
}
171+
165172
/**
166173
* @expectedException \Exception
167174
* @expectedExceptionMessage You cannot call

0 commit comments

Comments
 (0)