Skip to content

Commit

Permalink
fix test definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skie committed May 3, 2019
1 parent e516f13 commit 28623d9
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Controller/AutocompleteTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AutocompleteTraitTest extends IntegrationTestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
Router::reload();
Expand All @@ -48,7 +48,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->Controller);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Controller/Component/FilterComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FilterComponentTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Controller = $this->getMockBuilder('Cake\Controller\Controller')
Expand All @@ -73,7 +73,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->Component);

Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/FormParameter/AutocompleteParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AutocompleteParameterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$controller = $this->getMockBuilder('Cake\Controller\Controller')
Expand Down Expand Up @@ -69,7 +69,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->AutocompleteParam);
unset($this->ParameterRegistry);
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/FormParameter/InputParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class InputParameterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$controller = $this->getMockBuilder('Cake\Controller\Controller')
Expand All @@ -60,7 +60,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->InputParam);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/FormParameter/ParameterRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ParameterRegistryTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$controller = $this->getMockBuilder('Cake\Controller\Controller')
Expand All @@ -48,7 +48,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->ParameterRegistry);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/FormParameter/SelectParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SelectParameterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$controller = $this->getMockBuilder('Cake\Controller\Controller')
Expand All @@ -81,7 +81,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->SelectParam);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Behavior/FilterBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FilterBehaviorTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Articles = TableRegistry::get('Articles');
Expand All @@ -55,7 +55,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
parent::tearDown();
TableRegistry::clear();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Filter/CustomFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CustomFilterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Table = TableRegistry::get('Articles');
Expand All @@ -65,7 +65,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->CustomFilter);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Filter/LikeFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LikeFilterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Table = TableRegistry::getTableLocator()->get('Articles');
Expand All @@ -62,7 +62,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->LikeFilter);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Filter/MultipleFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MultipleFilterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Table = TableRegistry::getTableLocator()->get('Articles');
Expand All @@ -59,7 +59,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->Table);
unset($this->FilterRegistry);
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Filter/ValueFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ValueFilterTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Table = TableRegistry::getTableLocator()->get('Articles');
Expand All @@ -62,7 +62,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->ValueFilter);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Model/FilterRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FilterRegistryTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->Table = TableRegistry::getTableLocator()->get('Articles');
Expand All @@ -61,7 +61,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->Table, $this->FilterRegistry);
parent::tearDown();
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/View/Helper/SearchHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SearchHelperTest extends TestCase
*
* @return void
*/
public function setUp()
public function setUp(): void
{
parent::setUp();
$this->View = new View();
Expand All @@ -71,7 +71,7 @@ public function setUp()
*
* @return void
*/
public function tearDown()
public function tearDown(): void
{
unset($this->Search);

Expand Down

0 comments on commit 28623d9

Please sign in to comment.