Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
registerComparator example
// Change the current dir to DRUPAL_ROOT.
chdir
(
static
::
getDrupalRoot
(
)
)
;
}
/** * {@inheritdoc} */
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
// Allow tests to compare MarkupInterface objects via assertEquals().
$this
->
registerComparator
(
new
MarkupInterfaceComparator
(
)
)
;
$this
->root =
static
::
getDrupalRoot
(
)
;
$this
->
initFileCache
(
)
;
$this
->
bootEnvironment
(
)
;
$this
->
bootKernel
(
)
;
}
/** * {@inheritdoc} */
public
function
__get
(
string
$name
)
{
protected
function
registerSessions
(
)
{
}
/** * {@inheritdoc} */
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
$this
->
setUpAppRoot
(
)
;
// Allow tests to compare MarkupInterface objects via assertEquals().
$this
->
registerComparator
(
new
MarkupInterfaceComparator
(
)
)
;
$this
->
setupBaseUrl
(
)
;
// Install Drupal test site.
$this
->
prepareEnvironment
(
)
;
$this
->
installDrupal
(
)
;
// Setup Mink.
$this
->
initMink
(
)
;
// Set up the browser test output file.