2012-08-15 16:50:19 +02:00
|
|
|
<?php
|
|
|
|
|
2012-10-16 22:01:16 +02:00
|
|
|
namespace SilverStripe\BehatExtension\Context;
|
2012-08-15 16:50:19 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
2012-11-15 18:12:21 +01:00
|
|
|
public function setDatabase($databaseName);
|
2012-08-19 12:22:51 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Marks steps as AJAX steps for special treatment
|
|
|
|
*
|
|
|
|
* @param array $ajax_steps Array of step name parts to match
|
|
|
|
*/
|
2012-11-15 18:12:21 +01:00
|
|
|
public function setAjaxSteps($ajaxSteps);
|
2012-08-19 12:22:51 +02:00
|
|
|
}
|