PHP 클래스 Codeception\Module\WordPress

상속: extends Codeception\Lib\Framework, implements Codeception\Lib\Interfaces\DependsOnModule
파일 보기 프로젝트 열기: lucatume/wp-browser

공개 프로퍼티들

프로퍼티 타입 설명
$client tad\WPBrowser\Connector\WordPress

보호된 프로퍼티들

프로퍼티 타입 설명
$adminPath string
$config array
$dependencyMessage string
$isMockRequest boolean
$lastRequestWasAdmin boolean
$requiredFields array
$siteUrl string
$wpdbModule WPDb

공개 메소드들

메소드 설명
__construct ( Codeception\Lib\ModuleContainer $moduleContainer, array $config = [], WordPress $client = null ) WordPress constructor.
_after ( Codeception\TestInterface $test )
_afterStep ( Codeception\Step $step )
_afterSuite ( )
_before ( Codeception\TestInterface $test )
_beforeStep ( Codeception\Step $step )
_beforeSuite ( $settings = [] )
_cleanup ( )
_depends ( ) : array Specifies class or module which is required for current one.
_failed ( Codeception\TestInterface $test, $fail )
_initialize ( )
_inject ( WPDb $wpdbModule )
_isMockRequest ( $isMockRequest = false )
_lastRequestWasAdmin ( )
_setClient ( $client )
amEditingPostWithId ( $id )
amOnAdminAjaxPage ( )
amOnAdminPage ( $page )
amOnCronPage ( )
amOnPage ( string $page ) : null | string
getInternalDomains ( ) : array Returns a list of recognized domain names
loginAs ( $user, $password )
loginAsAdmin ( )
setAdminPath ( $adminPath )

보호된 메소드들

메소드 설명
getAbsoluteUrlFor ( $uri )

비공개 메소드들

메소드 설명
ensureWpRoot ( )
isAdminPageRequest ( $page )
preparePage ( $page ) : string
setRequestType ( $page )
setupClient ( $siteDomain )
untrailslashIt ( $path ) : mixed

메소드 상세

__construct() 공개 메소드

WordPress constructor.
public __construct ( Codeception\Lib\ModuleContainer $moduleContainer, array $config = [], WordPress $client = null )
$moduleContainer Codeception\Lib\ModuleContainer
$config array
$client tad\WPBrowser\Connector\WordPress

_after() 공개 메소드

public _after ( Codeception\TestInterface $test )
$test Codeception\TestInterface

_afterStep() 공개 메소드

public _afterStep ( Codeception\Step $step )
$step Codeception\Step

_afterSuite() 공개 메소드

public _afterSuite ( )

_before() 공개 메소드

public _before ( Codeception\TestInterface $test )
$test Codeception\TestInterface

_beforeStep() 공개 메소드

public _beforeStep ( Codeception\Step $step )
$step Codeception\Step

_beforeSuite() 공개 메소드

public _beforeSuite ( $settings = [] )

_cleanup() 공개 메소드

public _cleanup ( )

_depends() 공개 메소드

THis method should return array with key as class name and value as error message [className => errorMessage]
public _depends ( ) : array
리턴 array

_failed() 공개 메소드

public _failed ( Codeception\TestInterface $test, $fail )
$test Codeception\TestInterface

_initialize() 공개 메소드

public _initialize ( )

_inject() 공개 메소드

public _inject ( WPDb $wpdbModule )
$wpdbModule WPDb

_isMockRequest() 공개 메소드

public _isMockRequest ( $isMockRequest = false )

_lastRequestWasAdmin() 공개 메소드

_setClient() 공개 메소드

public _setClient ( $client )

amEditingPostWithId() 공개 메소드

public amEditingPostWithId ( $id )

amOnAdminAjaxPage() 공개 메소드

public amOnAdminAjaxPage ( )

amOnAdminPage() 공개 메소드

public amOnAdminPage ( $page )

amOnCronPage() 공개 메소드

public amOnCronPage ( )

amOnPage() 공개 메소드

public amOnPage ( string $page ) : null | string
$page string The relative path to a page.
리턴 null | string

getAbsoluteUrlFor() 보호된 메소드

protected getAbsoluteUrlFor ( $uri )

getInternalDomains() 공개 메소드

Returns a list of recognized domain names
public getInternalDomains ( ) : array
리턴 array

loginAs() 공개 메소드

public loginAs ( $user, $password )

loginAsAdmin() 공개 메소드

public loginAsAdmin ( )

setAdminPath() 공개 메소드

public setAdminPath ( $adminPath )

프로퍼티 상세

$adminPath 보호되어 있는 프로퍼티

protected string $adminPath
리턴 string

$client 공개적으로 프로퍼티

public WordPress,tad\WPBrowser\Connector $client
리턴 tad\WPBrowser\Connector\WordPress

$config 보호되어 있는 프로퍼티

protected array $config
리턴 array

$dependencyMessage 보호되어 있는 프로퍼티

protected string $dependencyMessage
리턴 string

$isMockRequest 보호되어 있는 프로퍼티

protected bool $isMockRequest
리턴 boolean

$lastRequestWasAdmin 보호되어 있는 프로퍼티

protected bool $lastRequestWasAdmin
리턴 boolean

$requiredFields 보호되어 있는 프로퍼티

protected array $requiredFields
리턴 array

$siteUrl 보호되어 있는 프로퍼티

protected string $siteUrl
리턴 string

$wpdbModule 보호되어 있는 프로퍼티

protected WPDb,Codeception\Module $wpdbModule
리턴 WPDb