Skip to content

Commit

Permalink
tests: fixed inconsistency [closes #100]
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Aug 21, 2015
1 parent da1d6e5 commit ee39017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cases/integration/Mapper/file.general.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class FileMapperTest extends TestCase
$author = new Author();
$author->name = 'The Imp';
$author->web = 'localhost';
$author->born = '2000-01-01 12:12:12';
$author->born = '2000-01-01';

$orm->authors->attach($author);

Expand Down Expand Up @@ -70,7 +70,7 @@ class FileMapperTest extends TestCase
/** @var Author $author */
$author = $orm->authors->findAll()->fetch();
Assert::same('The Imp', $author->name);
Assert::same('2000-01-01 12:12:12', $author->born->format('Y-m-d H:i:s'));
Assert::same('2000-01-01', $author->born->format('Y-m-d'));
Assert::same(3, $author->books->countStored());
Assert::same(3, $author->books->count());
Assert::same(1, $author->translatedBooks->count());
Expand Down

0 comments on commit ee39017

Please sign in to comment.