Skip to content

Commit

Permalink
Move tests to dedicated directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Jan 9, 2017
1 parent 063c303 commit 88e6c4e
Show file tree
Hide file tree
Showing 54 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ before_install:
install:
- composer update --prefer-dist

- src/Tests/Application/bin/console doctrine:schema:create --env=test -vvv --no-interaction
- src/Tests/Application/bin/console doctrine:phpcr:repository:init --env=test -vvv --no-interaction
- tests/Application/bin/console doctrine:schema:create --env=test -vvv --no-interaction
- tests/Application/bin/console doctrine:phpcr:repository:init --env=test -vvv --no-interaction

script:
- composer validate
Expand Down
10 changes: 5 additions & 5 deletions behat.yml.dist
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
imports:
- vendor/sylius/sylius/behat.yml.dist
- src/Tests/Behat/Resources/suites.yml
- tests/Behat/Resources/suites.yml

default:
extensions:
FriendsOfBehat\ContextServiceExtension:
imports:
- "vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml"
- "src/Tests/Behat/Resources/services.xml"
- "tests/Behat/Resources/services.xml"

FriendsOfBehat\SymfonyExtension:
kernel:
class: AppKernel
path: src/Tests/Application/app/AppKernel.php
bootstrap: src/Tests/Application/app/autoload.php
path: tests/Application/app/AppKernel.php
bootstrap: tests/Application/app/autoload.php

Behat\MinkExtension:
files_path: "%paths.base%/src/Tests/Fixtures/"
files_path: "%paths.base%/tests/Fixtures/"
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@
"prefer-stable": true,
"autoload": {
"psr-4": { "Lakion\\SyliusCmsBundle\\": "src/" }
},
"autoload-dev": {
"psr-4": { "Lakion\\SyliusCmsBundle\\Tests\\": "tests/" }
}
}
Empty file removed src/Tests/Application/var/.gitkeep
Empty file.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Composer\Autoload\ClassLoader;

/** @var ClassLoader $loader */
$loader = require __DIR__.'/../../../../vendor/autoload.php';
$loader = require __DIR__.'/../../../vendor/autoload.php';
require_once __DIR__ . '/AppKernel.php';

AnnotationRegistry::registerLoader([$loader, 'loadClass']);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit 88e6c4e

Please sign in to comment.