PHP Class PluginTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$fixtures

Public Methods

Method Description
addFavoriteAdminLinkDataProvider ( )
getDirectoryPathDataProvider ( )
hasDuplicateValueDataProvider ( )
setUp ( )
tearDown ( )
testAddFavoriteAdminLink ( string $pluginName, array $userId, array $expected, string $message = null ) プラグイン管理のリンクを指定したユーザーのお気に入りに追加
testAlterDb ( ) : boolean データベースの構造を変更する
testChangePriority ( ) : boolean 優先順位を変更する
testGetDirectoryPath ( string $pluginName, array $expected, string $message = null ) プラグインのディレクトリパスを取得
testGetPluginInfo ( ) : array プラグイン情報を取得する
testHasDuplicateValue ( string $fieldName, array $expected, string $message = null ) 指定したフィールドに重複値があるかチェック
testInitDb ( ) : boolean データベースを初期化する 既存のテーブルは上書きしない
testRearrangePriorities ( ) : boolean 優先順位を連番で振り直す
testResetDb ( ) : boolean データベースをプラグインインストール前の状態に戻す
test半角英数チェック異常系 ( )
test必須チェック ( ) validate
test桁数チェック正常系 ( )
test桁数チェック異常系 ( )
test重複チェック異常系 ( )

Method Details

addFavoriteAdminLinkDataProvider() public method

getDirectoryPathDataProvider() public method

hasDuplicateValueDataProvider() public method

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAlterDb() public method

データベースの構造を変更する
public testAlterDb ( ) : boolean
return boolean

testChangePriority() public method

優先順位を変更する
public testChangePriority ( ) : boolean
return boolean

testGetDirectoryPath() public method

プラグインのディレクトリパスを取得
public testGetDirectoryPath ( string $pluginName, array $expected, string $message = null )
$pluginName string プラグイン名
$expected array 期待値
$message string テストが失敗した時に表示されるメッセージ

testGetPluginInfo() public method

プラグイン情報を取得する
public testGetPluginInfo ( ) : array
return array

testHasDuplicateValue() public method

指定したフィールドに重複値があるかチェック
public testHasDuplicateValue ( string $fieldName, array $expected, string $message = null )
$fieldName string チェックするフィールド名
$expected array 期待値
$message string テストが失敗した時に表示されるメッセージ

testInitDb() public method

データベースを初期化する 既存のテーブルは上書きしない
public testInitDb ( ) : boolean
return boolean

testRearrangePriorities() public method

優先順位を連番で振り直す

testResetDb() public method

データベースをプラグインインストール前の状態に戻す
public testResetDb ( ) : boolean
return boolean

test半角英数チェック異常系() public method

test必須チェック() public method

validate

test桁数チェック正常系() public method

test桁数チェック異常系() public method

test重複チェック異常系() public method

Property Details

$fixtures public property

public $fixtures