Browse Source

Correctif tests

refactoring
Guillaume Bourgeois 1 year ago
parent
commit
293b30d966
4 changed files with 8 additions and 3 deletions
  1. +1
    -2
      common/mail/layouts/html.php
  2. +3
    -0
      producer/controllers/SiteController.php
  3. +1
    -1
      tests/codeception/common/fixtures/data/init_login.php
  4. +3
    -0
      tests/codeception/frontend/_bootstrap.php

+ 1
- 2
common/mail/layouts/html.php View File

@@ -41,8 +41,7 @@ use yii\helpers\Html;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
?>
<?php $this->beginPage() ?>
?><?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

+ 3
- 0
producer/controllers/SiteController.php View File

@@ -170,6 +170,9 @@ class SiteController extends ProducerBaseController
if (strlen($email) && $model->sendEmail($email)) {
$isSent = true;
}
else {
die('email : '.$email);
}
}

if ($isSent) {

+ 1
- 1
tests/codeception/common/fixtures/data/init_login.php View File

@@ -11,6 +11,6 @@ return [
'updated_at' => '1392559490',
'email' => 'sfriesen@jenkins.info',
'id_producer' => 32,
'status' => 13
'status' => 11
],
];

+ 3
- 0
tests/codeception/frontend/_bootstrap.php View File

@@ -1,4 +1,7 @@
<?php

ini_set("display_errors", 0);

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');


Loading…
Cancel
Save