PHP Class BcManagerComponentTest

Inheritance: extends BaserTestCase
Show file Open project: baserproject/basercms

Public Properties

Property Type Description
$components
$fixtures

Public Methods

Method Description
deployThemeDataProvider ( )
getDatasourceNameDataProvider ( )
getRealDbNameDataProvider ( )
setUp ( )
tearDown ( )
testAddDefaultUser ( ) : boolean 初期ユーザーを登録する
testCheckDbConnection ( ) DB接続チェック
testCheckDbConnectionException ( ) DB接続チェック checkDbConnection()の Exception 例外のテスト
testCheckDbConnectionPDOException ( ) DB接続チェック checkDbConnection()の PDOException 例外のテスト
testCheckEnv ( ) : array 環境チェック
testConnectDb ( ) データベースに接続する
testConstructionDb ( ) : boolean データベースを構築する
testConstructionTable ( ) : boolean テーブルを構築する
testCreateDatabaseConfig ( ) : boolean データベース設定ファイル[database.php]を保存する
testCreateDefaultFiles ( ) アップロード用初期フォルダを作成する
testCreateInstallFile ( ) インストール設定ファイルを生成する
testCreatePageTemplates ( ) テーマ用のページファイルを生成する
testDeleteAllTables ( array $dbConfig = null ) : boolean 全てのテーブルを削除する
testDeleteTables ( ) テーブルを削除する
testDeployAdminAssets ( ) : boolean テーマに管理システム用アセットを配置する
testDeployEditorTemplateImage ( ) : boolean エディタテンプレート用のアイコン画像をデプロイ
testDeployTheme ( string $theme ) テーマを配置する
testExecuteDefaultUpdates ( ) データベースのデータに初期更新を行う
testGetAllDefaultDataPatterns ( ) 全ての初期データセットのリストを取得する
testGetDatasourceName ( string $datasource, string $expected ) datasource名を取得
testGetDefaultDataPatterns ( ) : array 初期データのセットを取得する
testGetRealDbName ( string $type, string $name, $expected ) 実際の設定用のDB名を取得する
testInitSystemData ( ) システムデータを初期化する
testInstall ( ) : boolean baserCMSのインストール
testInstallAndUninstallPlugin ( ) : boolean プラグインをインストール/アンインストールする
testInstallPluginInclude ( ) : boolean プラグインをインストールする 設定ファイルなどを読み込む場合
testLoadDefaultDataPattern ( ) : boolean 初期データを読み込む
testReconstructionMessage ( ) : boolean メール受信テーブルの再構築
testReset ( ) baserCMSをリセットする
testResetAdminAssets ( ) : boolean 管理画面用のアセットフォルダ(img / js / css)を初期化する
testResetAllTables ( array $dbConfig = null, $excludes = [] ) : boolean プラグインも含めて全てのテーブルをリセットする
testResetFiles ( ) : boolean files フォルダを初期化する
testResetSetting ( ) : boolean 設定ファイルをリセットする
testResetTables ( ) : boolean テーブルをリセットする
testSetAdminEmail ( ) サイト基本設定に管理用メールアドレスを登録する
testSetInstallSetting ( ) : boolean インストール設定を書き換える
testSetSecurityCipherSeed ( ) セキュリティ用の数字キーを生成する
testSetSecuritySalt ( ) セキュリティ用のキーを生成する

Method Details

deployThemeDataProvider() public method

getDatasourceNameDataProvider() public method

getRealDbNameDataProvider() public method

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAddDefaultUser() public method

初期ユーザーを登録する
public testAddDefaultUser ( ) : boolean
return boolean

testCheckDbConnection() public method

DB接続チェック

testCheckDbConnectionException() public method

PHPUnitのバージョンによって、Exceptionは派生クラスではないとエラーが出るのでスキップ expectedException Exception expectedExceptionMessage ドライバが見つかりません Driver is not defined.(MySQL|Postgres|SQLite|CSV)

testCheckDbConnectionPDOException() public method

DB接続チェック checkDbConnection()の PDOException 例外のテスト

testCheckEnv() public method

環境チェック
public testCheckEnv ( ) : array
return array

testConnectDb() public method

データベースに接続する
public testConnectDb ( )

testConstructionDb() public method

データベースを構築する
public testConstructionDb ( ) : boolean
return boolean

testConstructionTable() public method

テーブルを構築する
public testConstructionTable ( ) : boolean
return boolean

testCreateDatabaseConfig() public method

データベース設定ファイル[database.php]を保存する

testCreateDefaultFiles() public method

アップロード用初期フォルダを作成する

testCreateInstallFile() public method

インストール設定ファイルを生成する

testCreatePageTemplates() public method

テーマ用のページファイルを生成する

testDeleteAllTables() public method

全てのテーブルを削除する
public testDeleteAllTables ( array $dbConfig = null ) : boolean
$dbConfig array
return boolean

testDeleteTables() public method

テーブルを削除する
public testDeleteTables ( )

testDeployAdminAssets() public method

テーマに管理システム用アセットを配置する
public testDeployAdminAssets ( ) : boolean
return boolean

testDeployEditorTemplateImage() public method

エディタテンプレート用のアイコン画像をデプロイ

testDeployTheme() public method

テーマを配置する
public testDeployTheme ( string $theme )
$theme string テーマ名

testExecuteDefaultUpdates() public method

データベースのデータに初期更新を行う

testGetAllDefaultDataPatterns() public method

全ての初期データセットのリストを取得する

testGetDatasourceName() public method

datasource名を取得
public testGetDatasourceName ( string $datasource, string $expected )
$datasource string datasource名
$expected string 期待値

testGetDefaultDataPatterns() public method

初期データのセットを取得する
public testGetDefaultDataPatterns ( ) : array
return array

testGetRealDbName() public method

実際の設定用のDB名を取得する
public testGetRealDbName ( string $type, string $name, $expected )
$type string
$name string

testInitSystemData() public method

システムデータを初期化する
public testInitSystemData ( )

testInstall() public method

baserCMSのインストール
public testInstall ( ) : boolean
return boolean

testInstallAndUninstallPlugin() public method

プラグインをインストール/アンインストールする

testInstallPluginInclude() public method

プラグインをインストールする 設定ファイルなどを読み込む場合

testLoadDefaultDataPattern() public method

初期データを読み込む

testReconstructionMessage() public method

メール受信テーブルの再構築

testReset() public method

baserCMSをリセットする
public testReset ( )

testResetAdminAssets() public method

管理画面用のアセットフォルダ(img / js / css)を初期化する
public testResetAdminAssets ( ) : boolean
return boolean

testResetAllTables() public method

プラグインは有効となっているもののみ 現在のテーマでないテーマの梱包プラグインを検出できない為
public testResetAllTables ( array $dbConfig = null, $excludes = [] ) : boolean
$dbConfig array
return boolean

testResetFiles() public method

files フォルダを初期化する
public testResetFiles ( ) : boolean
return boolean

testResetSetting() public method

設定ファイルをリセットする
public testResetSetting ( ) : boolean
return boolean

testResetTables() public method

テーブルをリセットする
public testResetTables ( ) : boolean
return boolean

testSetAdminEmail() public method

サイト基本設定に管理用メールアドレスを登録する
public testSetAdminEmail ( )

testSetInstallSetting() public method

インストール設定を書き換える
public testSetInstallSetting ( ) : boolean
return boolean

testSetSecurityCipherSeed() public method

セキュリティ用の数字キーを生成する

testSetSecuritySalt() public method

セキュリティ用のキーを生成する
public testSetSecuritySalt ( )

Property Details

$components public property

public $components

$fixtures public property

public $fixtures