Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Feb 17, 2024
1 parent 6fad270 commit c615b86
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"require-dev": {
"gajus/dindent": "^2.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5"
"phpunit/phpunit": "^11.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
4 changes: 2 additions & 2 deletions resources/fomanticui2/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
],
'carousel' => [
'files' => [
'css' => ['https://cdn.jsdelivr.net/npm/swiper@11.0.5/swiper-bundle.min.css'],
'js' => ['https://cdn.jsdelivr.net/npm/swiper@11.0.5/swiper-bundle.min.js'],
'css' => ['https://cdn.jsdelivr.net/npm/swiper@11.0.6/swiper-bundle.min.css'],
'js' => ['https://cdn.jsdelivr.net/npm/swiper@11.0.6/swiper-bundle.min.js'],
],
],
'dropdown' => [
Expand Down
2 changes: 1 addition & 1 deletion src/UiKit.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct(Config|array $config = []) {
* @param Config|array<string, mixed> $config
*/
public static function getInstance(Config|array $config = []): UiKit {
if (self::$instance === null) {
if (!self::$instance instanceof self) {
self::$instance = new self($config);
}

Expand Down
1 change: 1 addition & 0 deletions tests/Components/Form/CheckboxTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

abstract class CheckboxTestCase extends ComponentTestCase {
protected string $expected_tpl;

protected string $expected_multiple_tpl;

public function testCheckboxRender(): void {
Expand Down
1 change: 1 addition & 0 deletions tests/Components/Form/FormTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

abstract class FormTestCase extends ComponentTestCase {
protected string $expected_open_tpl;

protected string $expected_close_tpl;

public function testOpenFormRender(): void {
Expand Down
1 change: 1 addition & 0 deletions tests/Components/Layout/ContainerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

abstract class ContainerTestCase extends ComponentTestCase {
protected string $expected_open_tpl;

protected string $expected_close_tpl;

public function testOpenContainerRender(): void {
Expand Down
5 changes: 5 additions & 0 deletions tests/Components/Layout/GridTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@

abstract class GridTestCase extends ComponentTestCase {
protected string $expected_open_tpl;

protected string $expected_close_tpl;

protected string $expected_100_50_tpl;

protected string $expected_fw_tpl;

protected string $expected_auto_tpl;

protected string $expected_auto_multiple_tpl;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/Components/Layout/LayoutTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

abstract class LayoutTestCase extends ComponentTestCase {
protected string $expected_tpl;

protected string $expected_framework;

protected function setUp(string $framework = ''): void {
Expand Down
1 change: 1 addition & 0 deletions tests/Components/Layout/RowTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

abstract class RowTestCase extends ComponentTestCase {
protected string $expected_open_tpl;

protected string $expected_close_tpl;

public function testOpenRowRender(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/CustomComponets/TestTwigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use RobiNN\UiKit\Tests\ComponentTestCase;

final class TestTwigTest extends ComponentTestCase {
protected string $expected_tpl;
private string $expected_tpl;

protected function setUp(): void {
parent::setUp();
Expand Down

0 comments on commit c615b86

Please sign in to comment.