Made the tests executable again (#1042).

This commit is contained in:
Alex Tselegidis 2021-10-18 13:40:05 +02:00
parent a0d61449cc
commit 1d632d561d
28 changed files with 22 additions and 42 deletions

View file

@ -28,7 +28,10 @@
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"EA\\Engine\\": "engine/"
"EA\\Engine\\": [
"engine/",
"tests/engine/"
]
}
},
"require": {
@ -45,7 +48,7 @@
},
"require-dev": {
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^9"
"phpunit/phpunit": "^9.5"
},
"scripts": {
"test": "php vendor/bin/phpunit tests"

4
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "38fd62b1f2842600782427033aa9e826",
"content-hash": "691584c0c433458674bdb8e6b295f10c",
"packages": [
{
"name": "firebase/php-jwt",
@ -3759,5 +3759,5 @@
"ext-gd": "*"
},
"platform-dev": [],
"plugin-api-version": "2.0.0"
"plugin-api-version": "2.1.0"
}

View file

@ -1,31 +1,8 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/|version|/phpunit.xsd"
backupGlobals="true"
backupStaticAttributes="false"
bootstrap="tests/phpunit/bootstrap.php"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
cacheResult="false"
cacheTokens="false"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
printerClass="PHPUnit\TextUI\ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
stopOnRisky="false"
testSuiteLoaderClass="PHPUnit\Runner\StandardTestSuiteLoader"
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
verbose="false">
<filter>
<whitelist>
<directory suffix=".php">src/engine</directory>
</whitelist>
</filter>
>
</phpunit>

View file

@ -13,5 +13,5 @@
// Bootstrap Easy!Appointments PHPUnit Tests
require_once __DIR__ . '/../../config.php';
require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/../config.php';
require_once __DIR__ . '/../vendor/autoload.php';

View file

@ -13,7 +13,7 @@
namespace EA\Engine\Api\V1;
use EA\Engine\Type\NonEmptyText;
use EA\Engine\Types\NonEmptyText;
use PHPUnit\Framework\TestCase;
class AuthorizationTest extends TestCase {

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;

View file

@ -11,7 +11,7 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Type;
namespace EA\Engine\Types;
use PHPUnit\Framework\TestCase;