-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add web test. Refactoring.
- Loading branch information
Showing
27 changed files
with
538 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
use yii\db\Migration; | ||
use yii\db\Schema; | ||
|
||
class m151005_165040_comment_from extends Migration | ||
{ | ||
|
||
public function up() | ||
{ | ||
$this->addColumn('{{%comment}}', 'from', Schema::TYPE_STRING . ' AFTER [[entity]]'); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->dropColumn('{{%comment}}', 'from'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Web test for current extension | ||
============================== | ||
|
||
Run | ||
--- | ||
|
||
Execute migrations | ||
``` | ||
./yii migrate/up --migrationPath=../../migrations | ||
./yii migrate/up | ||
``` | ||
|
||
Run local web server | ||
``` | ||
php -S 127.0.0.1:8899 | ||
``` | ||
|
||
Open in browser http://127.0.0.1:8899 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* AppAssetBundle.php | ||
* @author Revin Roman | ||
* @link https://rmrevin.com | ||
*/ | ||
|
||
namespace rmrevin\yii\module\Comments\tests\web\assets; | ||
|
||
/** | ||
* Class AppAssetBundle | ||
* @package rmrevin\yii\module\Comments\tests\web\assets | ||
*/ | ||
class AppAssetBundle extends \yii\web\AssetBundle | ||
{ | ||
|
||
public $css = [ | ||
'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', | ||
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', | ||
]; | ||
|
||
public $js = [ | ||
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', | ||
]; | ||
|
||
public $depends = [ | ||
'yii\web\JqueryAsset', | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'id' => 'basic-console', | ||
'basePath' => dirname(__DIR__), | ||
'bootstrap' => [], | ||
'controllerNamespace' => 'app\commands', | ||
'components' => [ | ||
'db' => require(__DIR__ . '/db.php'), | ||
], | ||
'params' => [], | ||
]; |
Oops, something went wrong.