aboutsummaryrefslogtreecommitdiffstats
path: root/tests/log
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-01 02:57:16 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-01 02:57:16 +0200
commit8e2a0caf54376b1a6598562e4fc4518f6e255fba (patch)
tree71f8f4c8583e46a8bfb1d3642aabc816ed2e5d2b /tests/log
parent6794c6b79b751fe90f9c37020276e4510e41150e (diff)
downloadforums-8e2a0caf54376b1a6598562e4fc4518f6e255fba.tar
forums-8e2a0caf54376b1a6598562e4fc4518f6e255fba.tar.gz
forums-8e2a0caf54376b1a6598562e4fc4518f6e255fba.tar.bz2
forums-8e2a0caf54376b1a6598562e4fc4518f6e255fba.tar.xz
forums-8e2a0caf54376b1a6598562e4fc4518f6e255fba.zip
[ticket/12639] Use assertSame
PHPBB3-12639
Diffstat (limited to 'tests/log')
-rw-r--r--tests/log/delete_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/log/delete_test.php b/tests/log/delete_test.php
index 188e5138d0..b8be15efa5 100644
--- a/tests/log/delete_test.php
+++ b/tests/log/delete_test.php
@@ -140,9 +140,9 @@ class phpbb_log_delete_test extends phpbb_database_test_case
*/
public function test_log_delete($expected_before, $expected_after, $delete_conditions, $mode, $count_logs, $limit, $offset, $forum_id, $topic_id, $user_id, $log_time, $sort_by, $keywords)
{
- $this->assertEquals($expected_before, $this->get_ids($this->log->get_logs($mode, $count_logs, $limit, $offset, $forum_id, $topic_id, $user_id, $log_time, $sort_by, $keywords)), 'before');
+ $this->assertSame($expected_before, $this->get_ids($this->log->get_logs($mode, $count_logs, $limit, $offset, $forum_id, $topic_id, $user_id, $log_time, $sort_by, $keywords)), 'before');
$this->log->delete($mode, $delete_conditions);
- $this->assertEquals($expected_after, $this->get_ids($this->log->get_logs($mode, $count_logs, $limit, $offset, $forum_id, $topic_id, $user_id, $log_time, $sort_by, $keywords)), 'after');
+ $this->assertSame($expected_after, $this->get_ids($this->log->get_logs($mode, $count_logs, $limit, $offset, $forum_id, $topic_id, $user_id, $log_time, $sort_by, $keywords)), 'after');
}
public function get_ids($logs)
@@ -150,7 +150,7 @@ class phpbb_log_delete_test extends phpbb_database_test_case
$ids = array();
foreach ($logs as $log_entry)
{
- $ids[] = $log_entry['id'];
+ $ids[] = (int) $log_entry['id'];
}
return $ids;
}