Ver código fonte

test-local.php

refactoring
Guillaume Bourgeois 1 ano atrás
pai
commit
cc498be4b1
3 arquivos alterados com 2 adições e 30 exclusões
  1. +1
    -0
      common/config/.gitignore
  2. +0
    -29
      common/config/test-local.php
  3. +1
    -1
      tests/codeception/frontend/functional/HomeCept.php

+ 1
- 0
common/config/.gitignore Ver arquivo

@@ -1,6 +1,7 @@
bootstrap.php
main-local.php
params-local.php
test-local.php

stripe/*.key
mailjet/*.key

+ 0
- 29
common/config/test-local.php Ver arquivo

@@ -1,29 +0,0 @@
<?php

return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=opendistrib_test',
'username' => 'root',
'password' => 'k&mysql*$=',
'charset' => 'utf8',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => true,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp-laclic.alwaysdata.net',
'username' => 'contact@opendistrib.net',
'password' => 'k&opendistrib*$=',
'port' => '587',
//'encryption' => 'tls',
],
],
],
];

+ 1
- 1
tests/codeception/frontend/functional/HomeCept.php Ver arquivo

@@ -6,4 +6,4 @@ use tests\codeception\frontend\FunctionalTester;
$I = new FunctionalTester($scenario);
$I->wantTo("Page d'accueil");
$I->amOnPage('site/index');
$I->see('distribution');
$I->see('distribution', 'h1');

Carregando…
Cancelar
Salvar