Skip to content

Commit

Permalink
fix: tests according to last phpunit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrossi committed Sep 13, 2019
1 parent 2d53693 commit f95a25f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/BasicFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BasicFieldsTest extends PHPUnit\Framework\TestCase
/**
* Setup a base $this->post object to represent the page with the basic fields.
*/
public function setUp()
protected function setUp(): void
{
$this->post = Post::find(11); // it' a page with the custom fields
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ChoicesFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ChoicesFieldsTest extends PHPUnit\Framework\TestCase
*/
protected $post;

public function setUp()
protected function setUp(): void
{
$this->post = Post::find(44);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ContentFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ContentFieldsTest extends PHPUnit\Framework\TestCase
/**
* Setup a base $this->post object to represent the page with the content fields.
*/
public function setUp()
protected function setUp(): void
{
$this->post = Post::find(21); // it' a page with the custom fields
}
Expand Down
2 changes: 1 addition & 1 deletion tests/EmptyBasicFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EmptyBasicFieldsTest extends PHPUnit\Framework\TestCase
/**
* Setup a base $this->post object to represent the page with the basic fields.
*/
public function setUp()
protected function setUp(): void
{
$this->post = Post::find(91); // it' a page with empty custom fields
}
Expand Down
4 changes: 2 additions & 2 deletions tests/JqueryFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class JqueryFieldsTests extends PHPUnit\Framework\TestCase
*/
protected $post;

public function setUp()
protected function setUp(): void
{
$this->post = Post::find(65);
}

public function testGoogleMapField()
{
// Google Map field is not working at this moment
$this->markTestSkipped('Google Map field i s not working at the moment');
}

public function testDatePickerField()
Expand Down
2 changes: 1 addition & 1 deletion tests/RelationalFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RelationalFieldsTests extends PHPUnit\Framework\TestCase
*/
protected $post;

public function setUp()
protected function setUp(): void
{
$this->post = Post::find(56);
}
Expand Down

0 comments on commit f95a25f

Please sign in to comment.