Skip to content

Commit

Permalink
Adding test to Marshaller for showing that it adds the entity source
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 16, 2014
1 parent 24b28af commit 2a26b5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/ORM/MarshallerTest.php
Expand Up @@ -110,6 +110,8 @@ public function testOneSimple() {
$this->assertEquals($data, $result->toArray());
$this->assertTrue($result->dirty(), 'Should be a dirty entity.');
$this->assertNull($result->isNew(), 'Should be detached');
$source = ['alias' => 'Articles', 'className' => get_class($this->articles)];
$this->assertEquals($source, $result->source());
}

/**
Expand Down

0 comments on commit 2a26b5f

Please sign in to comment.