1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/16549] Remove exception expectation annotations

PHPBB3-16549
This commit is contained in:
rxu
2020-07-13 14:20:55 +07:00
parent fb62d22013
commit 632bcdd2da
10 changed files with 27 additions and 49 deletions

View File

@@ -386,12 +386,11 @@ class phpbb_tests_tree_nestedset_forum_move_test extends phpbb_tests_tree_nested
/**
* @dataProvider move_children_throws_item_data
*
* @expectedException OutOfBoundsException
* @expectedExceptionMessage FORUM_NESTEDSET_INVALID_ITEM
*/
public function test_move_children_throws_item($explain, $forum_id, $target_id)
{
$this->expectException('OutOfBoundsException');
$this->expectExceptionMessage('FORUM_NESTEDSET_INVALID_ITEM');
$this->set->move_children($forum_id, $target_id);
}
@@ -406,12 +405,11 @@ class phpbb_tests_tree_nestedset_forum_move_test extends phpbb_tests_tree_nested
/**
* @dataProvider move_children_throws_parent_data
*
* @expectedException OutOfBoundsException
* @expectedExceptionMessage FORUM_NESTEDSET_INVALID_PARENT
*/
public function test_move_children_throws_parent($explain, $forum_id, $target_id)
{
$this->expectException('OutOfBoundsException');
$this->expectExceptionMessage('FORUM_NESTEDSET_INVALID_PARENT');
$this->set->move_children($forum_id, $target_id);
}
@@ -542,12 +540,11 @@ class phpbb_tests_tree_nestedset_forum_move_test extends phpbb_tests_tree_nested
/**
* @dataProvider change_parent_throws_item_data
*
* @expectedException OutOfBoundsException
* @expectedExceptionMessage FORUM_NESTEDSET_INVALID_ITEM
*/
public function test_change_parent_throws_item($explain, $forum_id, $target_id)
{
$this->expectException('OutOfBoundsException');
$this->expectExceptionMessage('FORUM_NESTEDSET_INVALID_ITEM');
$this->set->change_parent($forum_id, $target_id);
}
@@ -562,12 +559,11 @@ class phpbb_tests_tree_nestedset_forum_move_test extends phpbb_tests_tree_nested
/**
* @dataProvider change_parent_throws_parent_data
*
* @expectedException OutOfBoundsException
* @expectedExceptionMessage FORUM_NESTEDSET_INVALID_PARENT
*/
public function test_change_parent_throws_parent($explain, $forum_id, $target_id)
{
$this->expectException('OutOfBoundsException');
$this->expectExceptionMessage('FORUM_NESTEDSET_INVALID_PARENT');
$this->set->change_parent($forum_id, $target_id);
}
}