Skip to content

Commit

Permalink
Bump up dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Nov 18, 2024
1 parent ffcf743 commit f605a74
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
}
],
"require": {
"cakephp/cakephp": "^5.0"
"cakephp/cakephp": "^5.1"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.5.5 || ^11.1.3",
"cakephp/bake": "^3.0",
"cakephp/cakephp-codesniffer": "^5.0"
"cakephp/cakephp-codesniffer": "^5.1"
},
"support": {
"issues": "http://github.com/friendsofcake/bootstrap-ui/issues",
Expand Down
1 change: 0 additions & 1 deletion src/View/Helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,6 @@ protected function _ariaOptions(string $fieldName, array $options): array
$options['type'] === 'hidden' ||
($options['type'] === 'select' && isset($options['multiple']) && $options['multiple'] === 'checkbox') ||
(
isset($options['aria-required']) &&
isset($options['aria-describedby']) &&
isset($options['aria-invalid'])
)
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Command/InstallCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,12 +574,12 @@ public function testNPMInstallFailure()
$command
->expects($this->once())
->method('_runNPMInstall')
->will($this->returnCallback(function (&$out, &$return) {
->willReturnCallback(function (&$out, &$return) {
$out = [
'installer output',
];
$return = 1234;
}));
});

$out = new StubConsoleOutput();
$err = new StubConsoleOutput();
Expand Down
12 changes: 7 additions & 5 deletions tests/TestCase/View/Helper/FlashHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Cake\Http\Session;
use Cake\TestSuite\TestCase;
use Cake\View\View;
use PHPUnit\Framework\Attributes\DataProvider;
use UnexpectedValueException;

/**
Expand Down Expand Up @@ -63,11 +64,11 @@ public static function flashTypeDefaultsDataProvider(): array
}

/**
* @dataProvider flashTypeDefaultsDataProvider
* @param string $type The flash type.
* @param string $class The alert class.
* @param string $icon The icon name.
*/
#[DataProvider('flashTypeDefaultsDataProvider')]
public function testRenderDefaults(string $type, string $class, string $icon)
{
$this->View->getRequest()->getSession()->write('Flash', [
Expand Down Expand Up @@ -445,9 +446,9 @@ public static function flashTypeDataProvider(): array
}

/**
* @dataProvider flashTypeDataProvider
* @param string $type The flash type.
*/
#[DataProvider('flashTypeDataProvider')]
public function testCustomDefaultIcon(string $type)
{
$this->Flash->setConfig('icon', 'info');
Expand All @@ -466,9 +467,9 @@ public function testCustomDefaultIcon(string $type)
}

/**
* @dataProvider flashTypeDataProvider
* @param string $type The flash type.
*/
#[DataProvider('flashTypeDataProvider')]
public function testDisableIconsViaConfig(string $type)
{
$this->Flash->setConfig('icon', false);
Expand All @@ -490,6 +491,7 @@ public function testDisableIconsViaConfig(string $type)
* @dataProvider flashTypeDataProvider
* @param string $type The flash type.
*/
#[DataProvider('flashTypeDataProvider')]
public function testDisableIconViaParamsOption(string $type)
{
$this->View->getRequest()->getSession()->write('Flash', [
Expand All @@ -508,9 +510,9 @@ public function testDisableIconViaParamsOption(string $type)
}

/**
* @dataProvider flashTypeDataProvider
* @param string $type The flash type.
*/
#[DataProvider('flashTypeDataProvider')]
public function testCustomIconClassMap(string $type)
{
$iconClassMap = [
Expand Down Expand Up @@ -540,9 +542,9 @@ public function testCustomIconClassMap(string $type)
}

/**
* @dataProvider flashTypeDataProvider
* @param string $type The flash type.
*/
#[DataProvider('flashTypeDataProvider')]
public function testCustomIconClassMapOptions(string $type)
{
$options = [
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/View/Helper/Types/ClassesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@

use BootstrapUI\View\Helper\Types\Classes;
use Cake\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\CoversMethod;

/**
* ClassesTest
*/
#[CoversMethod('\BootstrapUI\View\Helper\Types\Classes', 'values')]
class ClassesTest extends TestCase
{
/**
* Test get elements
*
* @return void
* @covers \BootstrapUI\View\Helper\Types\Classes::values
*/
public function testGetElements()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/View/Helper/Types/ElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@

use BootstrapUI\View\Helper\Types\Element;
use Cake\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\CoversMethod;

/**
* ElementTest
*/
#[CoversMethod('\BootstrapUI\View\Helper\Types\Element', 'values')]
class ElementTest extends TestCase
{
/**
* Test get elements
*
* @return void
* @covers \BootstrapUI\View\Helper\Types\Element::values
*/
public function testGetElements()
{
Expand Down

0 comments on commit f605a74

Please sign in to comment.