PHP 트레잇 _generated\CodeGuyActions

파일 보기 프로젝트 열기: yupe/yupe

공개 메소드들

메소드 설명
canSeeInDatabase ( string $table, array $criteria = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeNumRecords ( integer $expectedNumber, string $table, array $criteria = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInDatabase ( string $table, array $criteria = null ) [!] Method is generated. Documentation taken from corresponding module.
createConsoleYiiApp ( ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInDatabase ( string $table, array $criteria = null ) [!] Method is generated. Documentation taken from corresponding module.
grabFromDatabase ( string $table, string $column, array $criteria = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
haveInDatabase ( string $table, array $data ) : integer [!] Method is generated. Documentation taken from corresponding module.
seeInDatabase ( string $table, array $criteria = null ) [!] Method is generated. Documentation taken from corresponding module.
seeNumRecords ( integer $expectedNumber, string $table, array $criteria = null ) [!] Method is generated. Documentation taken from corresponding module.
setDbConnectionOptionsFromYiiConfig ( $dbConfigFile ) [!] Method is generated. Documentation taken from corresponding module.
setDbDumpOptions ( array $dumpOptions ) [!] Method is generated. Documentation taken from corresponding module.

보호된 메소드들

메소드 설명
getScenario ( ) : Codeception\Scenario

메소드 상세

canSeeInDatabase() 공개 메소드

Asserts that a row with the given column values exists. Provide table name and column values. php seeInDatabase('users', array('name' => 'Davert', 'email' => '[email protected]')); Fails if no such user found.
또한 보기: Codeception\Module\Db::seeInDatabase()
public canSeeInDatabase ( string $table, array $criteria = null )
$table string
$criteria array Conditional Assertion: Test won't be stopped on fail

canSeeNumRecords() 공개 메소드

Asserts that the given number of records were found in the database. php seeNumRecords(1, 'users', ['name' => 'davert']) ?>
또한 보기: Codeception\Module\Db::seeNumRecords()
public canSeeNumRecords ( integer $expectedNumber, string $table, array $criteria = null )
$expectedNumber integer Expected number
$table string Table name
$criteria array Search criteria [Optional] Conditional Assertion: Test won't be stopped on fail

cantSeeInDatabase() 공개 메소드

Effect is opposite to ->seeInDatabase Asserts that there is no record with the given column values in a database. Provide table name and column values. php dontSeeInDatabase('users', array('name' => 'Davert', 'email' => '[email protected]')); Fails if such user was found.
또한 보기: Codeception\Module\Db::dontSeeInDatabase()
public cantSeeInDatabase ( string $table, array $criteria = null )
$table string
$criteria array Conditional Assertion: Test won't be stopped on fail

createConsoleYiiApp() 공개 메소드

[!] Method is generated. Documentation taken from corresponding module.
또한 보기: Codeception\Module\YiiHelper::createConsoleYiiApp()
public createConsoleYiiApp ( )

dontSeeInDatabase() 공개 메소드

Effect is opposite to ->seeInDatabase Asserts that there is no record with the given column values in a database. Provide table name and column values. php dontSeeInDatabase('users', array('name' => 'Davert', 'email' => '[email protected]')); Fails if such user was found.
또한 보기: Codeception\Module\Db::dontSeeInDatabase()
public dontSeeInDatabase ( string $table, array $criteria = null )
$table string
$criteria array

getScenario() 추상적인 보호된 메소드

abstract protected getScenario ( ) : Codeception\Scenario
리턴 Codeception\Scenario

grabFromDatabase() 공개 메소드

Fetches a single column value from a database. Provide table name, desired column and criteria. php grabFromDatabase('users', 'email', array('name' => 'Davert'));
또한 보기: Codeception\Module\Db::grabFromDatabase()
public grabFromDatabase ( string $table, string $column, array $criteria = null ) : mixed
$table string
$column string
$criteria array
리턴 mixed

haveInDatabase() 공개 메소드

Inserts an SQL record into a database. This record will be erased after the test. php haveInDatabase('users', array('name' => 'miles', 'email' => '[email protected]')); ?>
또한 보기: Codeception\Module\Db::haveInDatabase()
public haveInDatabase ( string $table, array $data ) : integer
$table string
$data array
리턴 integer $id

seeInDatabase() 공개 메소드

Asserts that a row with the given column values exists. Provide table name and column values. php seeInDatabase('users', array('name' => 'Davert', 'email' => '[email protected]')); Fails if no such user found.
또한 보기: Codeception\Module\Db::seeInDatabase()
public seeInDatabase ( string $table, array $criteria = null )
$table string
$criteria array

seeNumRecords() 공개 메소드

Asserts that the given number of records were found in the database. php seeNumRecords(1, 'users', ['name' => 'davert']) ?>
또한 보기: Codeception\Module\Db::seeNumRecords()
public seeNumRecords ( integer $expectedNumber, string $table, array $criteria = null )
$expectedNumber integer Expected number
$table string Table name
$criteria array Search criteria [Optional]

setDbConnectionOptionsFromYiiConfig() 공개 메소드

Sets Db configuration file from Yii db.php or other file.
또한 보기: Codeception\Module\YiiHelper::setDbConnectionOptionsFromYiiConfig()
public setDbConnectionOptionsFromYiiConfig ( $dbConfigFile )
$dbConfigFile string DataBase Configuration file

setDbDumpOptions() 공개 메소드

Sets DataBase Dump file and its options For example: php setDbDumpOptions( array('dump'=>'tests/_data/mydump.sql','populate'=>true,'cleanup'=>false) ); ?>
또한 보기: Codeception\Module\YiiHelper::setDbDumpOptions()
public setDbDumpOptions ( array $dumpOptions )
$dumpOptions array module config options