Skip to content

Commit

Permalink
Failing testcase in toArray withColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
geryjuhasz committed May 22, 2013
1 parent 5364655 commit 2e50ea8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/testsuite/generator/builder/om/GeneratedObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,13 @@ public function testToArray()
$this->assertEquals('Don Juan', $arr1['Title'], 'toArray() returns an associative array representation of the object');
}

public function testToArrayWithColumn()
{
$book = BookQuery::create()->withColumn('Title', 'TitleCopy')->findOne();
$bookArray = $book->toArray();
$this->assertTrue($book->getTitleCopy(), $bookArray['TitleCopy']);
}

public function testToArrayKeyType()
{
$b = new Book();
Expand Down

0 comments on commit 2e50ea8

Please sign in to comment.