Skip to content

Commit

Permalink
Fixed tests codeception.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed May 17, 2021
1 parent df3eec9 commit 81c07d6
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 14 deletions.
11 changes: 11 additions & 0 deletions codeception.yml
@@ -0,0 +1,11 @@
namespace: Simple\View\Tailwind\Tests
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
6 changes: 3 additions & 3 deletions storage/layout/_menu.php
Expand Up @@ -32,7 +32,7 @@
],
];

$currentUrl = '';
$currentPath = '';
$menuItems = [];

if ($user !== [] && !$user->isGuest()) {
Expand Down Expand Up @@ -64,11 +64,11 @@
?>

<?=
NavBar::widget()
NavBar::widget()
->currentPath($currentPath)
->brandLink('/')
->brandText('My Proyect')
->begin();

NavBar::end();
NavBar::end()
?>
2 changes: 1 addition & 1 deletion tests/Acceptance.suite.yml
Expand Up @@ -9,5 +9,5 @@ modules:
enabled:
- PhpBrowser:
url: http://localhost:8080
- \Simple\View\Bootstrap5\Tests\Helper\Acceptance
- \Simple\View\Tailwind\Tests\Helper\Acceptance
step_decorators: ~
4 changes: 2 additions & 2 deletions tests/Acceptance/PageErrorCest.php
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Simple\View\Bootstrap5\Tests\Acceptance;
namespace Simple\View\Tailwind\Tests\Acceptance;

use Simple\View\Bootstrap5\Tests\AcceptanceTester;
use Simple\View\Tailwind\Tests\AcceptanceTester;

final class PageErrorCest
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Acceptance/PageHomeCest.php
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Simple\View\Bootstrap5\Tests\Acceptance;
namespace Simple\View\Tailwind\Tests\Acceptance;

use Simple\View\Bootstrap5\Tests\AcceptanceTester;
use Simple\View\Tailwind\Tests\AcceptanceTester;

final class PageHomeCest
{
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/AcceptanceTester.php
@@ -1,5 +1,5 @@
<?php
namespace Simple\View\Bootstrap5\Tests;
namespace Simple\View\Tailwind\Tests;

/**
* Inherited Methods
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/FunctionalTester.php
@@ -1,5 +1,5 @@
<?php
namespace Simple\View\Bootstrap5\Tests;
namespace Simple\View\Tailwind\Tests;

/**
* Inherited Methods
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Acceptance.php
@@ -1,5 +1,5 @@
<?php
namespace Simple\View\Bootstrap5\Tests\Helper;
namespace Simple\View\Tailwind\Tests\Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Functional.php
@@ -1,5 +1,5 @@
<?php
namespace Simple\View\Bootstrap5\Tests\Helper;
namespace Simple\View\Tailwind\Tests\Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Unit.php
@@ -1,5 +1,5 @@
<?php
namespace Simple\View\Bootstrap5\Tests\Helper;
namespace Simple\View\Tailwind\Tests\Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/UnitTester.php
@@ -1,5 +1,5 @@
<?php
namespace Simple\View\Bootstrap5\Tests;
namespace Simple\View\Tailwind\Tests;

/**
* Inherited Methods
Expand Down
13 changes: 13 additions & 0 deletions tests/functional.suite.yml
@@ -0,0 +1,13 @@
# Codeception Test Suite Configuration
#
# Suite for functional tests
# Emulate web requests and make application process them
# Include one of framework modules (Symfony2, Yii2, Laravel5, Phalcon4) to use it
# Remove this suite if you don't use frameworks

actor: FunctionalTester
modules:
enabled:
# add a framework module here
- \Simple\View\Tailwind\Tests\Helper\Functional
step_decorators: ~
10 changes: 10 additions & 0 deletions tests/unit.suite.yml
@@ -0,0 +1,10 @@
# Codeception Test Suite Configuration
#
# Suite for unit or integration tests.

actor: UnitTester
modules:
enabled:
- Asserts
- \Simple\View\Tailwind\Tests\Helper\Unit
step_decorators: ~

0 comments on commit 81c07d6

Please sign in to comment.