PHP 클래스 PluginTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: baserproject/basercms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fixtures

공개 메소드들

메소드 설명
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重複チェック異常系 ( )

메소드 상세

addFavoriteAdminLinkDataProvider() 공개 메소드

getDirectoryPathDataProvider() 공개 메소드

hasDuplicateValueDataProvider() 공개 메소드

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

testAlterDb() 공개 메소드

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

testChangePriority() 공개 메소드

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

testGetDirectoryPath() 공개 메소드

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

testGetPluginInfo() 공개 메소드

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

testHasDuplicateValue() 공개 메소드

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

testInitDb() 공개 메소드

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

testRearrangePriorities() 공개 메소드

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

testResetDb() 공개 메소드

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

test半角英数チェック異常系() 공개 메소드

test必須チェック() 공개 메소드

validate

test桁数チェック正常系() 공개 메소드

test桁数チェック異常系() 공개 메소드

test重複チェック異常系() 공개 메소드

프로퍼티 상세

$fixtures 공개적으로 프로퍼티

public $fixtures