Skip to content

Commit

Permalink
improved module to latest yawik version
Browse files Browse the repository at this point in the history
  • Loading branch information
kilip committed Nov 10, 2018
1 parent 5b23b92 commit 0334c08
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 37 deletions.
3 changes: 1 addition & 2 deletions behat.yml.dist
Expand Up @@ -40,8 +40,7 @@ default:
user:
contexts:
- Behat\MinkExtension\Context\MinkContext
- Yawik\Behat\CoreContext:
config: "%paths.base%/test/config/config.php"
- Yawik\Behat\CoreContext
- Yawik\Behat\UserContext
- Yawik\Behat\SummaryFormContext
- CompanyRegistration\Behat\CompanyRegistrationContext
1 change: 0 additions & 1 deletion phpunit.xml.dist
Expand Up @@ -3,7 +3,6 @@
<phpunit bootstrap="./vendor/autoload.php" colors="true">
<php>
<env name="APPLICATION_ENV" value="test"/>
<env name="APP_CONFIG_DIR" value="./test/config"/>
</php>
<filter>
<whitelist>
Expand Down
29 changes: 0 additions & 29 deletions test/config/config.php

This file was deleted.

2 changes: 2 additions & 0 deletions test/sandbox/.env.dist
@@ -0,0 +1,2 @@
APPLICATION_ENV=development
TIMEZONE="Europe/Berlin"
3 changes: 2 additions & 1 deletion test/sandbox/.gitignore
@@ -1,3 +1,4 @@
public/*
!public/index.php
var
var
log
1 change: 0 additions & 1 deletion test/sandbox/config

This file was deleted.

1 change: 1 addition & 0 deletions test/sandbox/config/autoload/.gitignore
@@ -0,0 +1 @@
*.local.php
File renamed without changes.
25 changes: 25 additions & 0 deletions test/sandbox/config/autoload/yawik.config.global.php
@@ -0,0 +1,25 @@
<?php

return array(
'doctrine' =>
array(
'connection' =>
array(
'odm_default' =>
array(
'connectionString' => 'mongodb://localhost:27017/YAWIK_TEST',
),
),
'configuration' =>
array(
'odm_default' =>
array(
'default_db' => 'YAWIK_TEST',
),
),
),
'core_options' =>
array(
'system_message_email' => 'me@itstoni.com',
),
);
16 changes: 16 additions & 0 deletions test/sandbox/config/config.php
@@ -0,0 +1,16 @@
<?php

chdir(dirname(__DIR__));
return [
'modules' => [
'Core',
'Cv',
'Auth',
'Jobs',
'Applications',
'Organizations',
'Geo',
'Settings',
'CompanyRegistration',
],
];
6 changes: 3 additions & 3 deletions test/sandbox/public/index.php
Expand Up @@ -2,8 +2,8 @@

require __DIR__.'/../../../vendor/autoload.php';

use Core\Yawik;
use Core\Application;

// Retrieve configuration
$appConfig = include __DIR__.'/../../config/config.php';
Yawik::runApplication($appConfig);
$appConfig = include __DIR__.'/../config/config.php';
Application::init($appConfig)->run();

0 comments on commit 0334c08

Please sign in to comment.