Skip to content

Commit

Permalink
bump up phpunit to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 27, 2024
1 parent 31cad75 commit cb4c52b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"require-dev": {
"friendsofcake/cakephp-test-utilities": "^3.0",
"markstory/asset_compress": "^5.0",
"phpunit/phpunit": "^10.1"
"phpunit/phpunit": "^10.1 || ^11.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/View/Helper/CrudViewHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public function testIntrospect()
$this->CrudView
->expects($this->any())
->method('getContext')
->will($this->returnValue(new Entity()));
->willReturn(new Entity());

$this->CrudView
->expects($this->any())
->method('columnType')
->with('created')
->will($this->returnValue('datetime'));
->willReturn('datetime');

$value = new DateTime();
$result = $this->CrudView->introspect('created', $value);
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/View/Widget/DateTimeWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Cake\View\Widget\SelectBoxWidget;
use CrudView\View\Widget\DateTimeWidget;
use FriendsOfCake\TestUtilities\CompareTrait;
use PHPUnit\Framework\Attributes\DataProvider;

/**
* DateTimeWidgetTest
Expand All @@ -30,10 +31,10 @@ public function setUp(): void
/**
* testRender
*
* @dataProvider renderProvider
* @param string $compareFileName
* @param array $data
*/
#[DataProvider('renderProvider')]
public function testRenderSimple($compareFileName, $data)
{
/** @var \Cake\View\Form\ContextInterface $context */
Expand Down

0 comments on commit cb4c52b

Please sign in to comment.