Add date_modification to comments (PR #2950)

This commit is contained in:
Lev Lazinskiy
2017-01-22 09:39:30 -08:00
committed by Frédéric Guillot
parent 67aca3c664
commit 8e18c39db9
10 changed files with 46 additions and 9 deletions

View File

@@ -35,10 +35,12 @@ class CommentProcedureTest extends BaseProcedureTest
$this->assertNotEmpty($comment);
$this->assertEquals(1, $comment['user_id']);
$this->assertEquals('foobar', $comment['comment']);
$this->assertEquals($comment['date_creation'], $comment['date_modification']);
}
public function assertUpdateComment()
{
sleep(1); // Integration test fails because its too fast
$this->assertTrue($this->app->execute('updateComment', array(
'id' => $this->commentId,
'content' => 'test',
@@ -46,6 +48,7 @@ class CommentProcedureTest extends BaseProcedureTest
$comment = $this->app->getComment($this->commentId);
$this->assertEquals('test', $comment['comment']);
$this->assertNotEquals($comment['date_creation'], $comment['date_modification']);
}
public function assertGetAllComments()