Explorar el Código

configs fixed and improved

Mark hace 12 años
padre
commit
805033eb4b
Se han modificado 3 ficheros con 16 adiciones y 2 borrados
  1. 7 1
      config/codeception/acceptance.php
  2. 7 1
      config/codeception/functional.php
  3. 2 0
      config/web-test.php

+ 7 - 1
config/codeception/acceptance.php

@@ -1,3 +1,9 @@
 <?php
 
-return [];
+return [
+	'components' => [
+		'db' => [
+			'dsn' => 'mysql:host=localhost;dbname=yii2basic_acceptance',
+		],
+	],
+];

+ 7 - 1
config/codeception/functional.php

@@ -1,3 +1,9 @@
 <?php
 
-return [];
+return [
+	'components' => [
+		'db' => [
+			'dsn' => 'mysql:host=localhost;dbname=yii2basic_functional',
+		],
+	],
+];

+ 2 - 0
config/web-test.php

@@ -1,5 +1,7 @@
 <?php
 
+Yii::setAlias('tests', realpath(__DIR__ . '/../tests'));
+
 $config = require(__DIR__ . '/web.php');
 
 // ... customize $config for the "test" environment here...