silverstripe-behat-extension/src/SilverStripe/BehatExtension/Context/SilverStripeAwareContextInt...

35 lines
796 B
PHP

<?php
namespace SilverStripe\BehatExtension\Context;
/*
* This file is part of the Behat/SilverStripeExtension
*
* (c) Michał Ochman <ochman.d.michal@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* SilverStripe aware interface for contexts.
*
* @author Michał Ochman <ochman.d.michal@gmail.com>
*/
interface SilverStripeAwareContextInterface
{
/**
* Sets SilverStripe instance.
*
* @param string $databaseName Temp database name
*/
public function setDatabase($databaseName);
/**
* Marks steps as AJAX steps for special treatment
*
* @param array $ajaxSteps Array of step name parts to match
*/
public function setAjaxSteps($ajaxSteps);
}