silverstripe-behat-extension/src/Behat/SilverStripeExtension/Context/SilverStripeAwareContextInt...

35 lines
809 B
PHP

<?php
namespace Behat\SilverStripeExtension\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 $database_name Temp database name
*/
public function setDatabase($database_name);
/**
* Marks steps as AJAX steps for special treatment
*
* @param array $ajax_steps Array of step name parts to match
*/
public function setAjaxEnabledSteps($ajax_steps);
}