summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-20 11:34:06 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-20 11:34:06 +0100
commitd18ab3212a4e6f0101722e842c515895408d9c18 (patch)
tree9b1c5dc3ba5a80c81b750a9c45514092eb65c13b /tests
parent959f29146e7ebec732c7bf54538221307a08189b (diff)
added another entity test
Diffstat (limited to 'tests')
-rw-r--r--tests/db/EntityTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/db/EntityTest.php b/tests/db/EntityTest.php
index 9002f5f5e..3ad5c8d1e 100644
--- a/tests/db/EntityTest.php
+++ b/tests/db/EntityTest.php
@@ -114,4 +114,13 @@ class EntityTest extends \PHPUnit_Framework_TestCase {
$this->entity->setTest();
}
+
+ public function testFromRowShouldNotAssignEmptyArray(){
+ $row = array();
+ $entity2 = new TestEntity();
+
+ $this->entity->fromRow($row);
+ $this->assertEquals($entity2, $this->entity);
+ }
+
} \ No newline at end of file