Parcourir la source

test-local.php

refactoring
Guillaume Bourgeois il y a 1 an
Parent
révision
cc498be4b1
3 fichiers modifiés avec 2 ajouts et 30 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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');

Chargement…
Annuler
Enregistrer