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

/* @var $this \yii\web\View view component instance */ /* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */ /* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */ /* @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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>

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

if (strlen($email) && $model->sendEmail($email)) { if (strlen($email) && $model->sendEmail($email)) {
$isSent = true; $isSent = true;
} }
else {
die('email : '.$email);
}
} }


if ($isSent) { if ($isSent) {

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

'updated_at' => '1392559490', 'updated_at' => '1392559490',
'email' => 'sfriesen@jenkins.info', 'email' => 'sfriesen@jenkins.info',
'id_producer' => 32, 'id_producer' => 32,
'status' => 13
'status' => 11
], ],
]; ];

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

<?php <?php

ini_set("display_errors", 0);

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



Loading…
Cancel
Save