Bladeren bron

Correctif tests

refactoring
Guillaume Bourgeois 1 jaar geleden
bovenliggende
commit
293b30d966
4 gewijzigde bestanden met toevoegingen van 8 en 3 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan