renamed MinkAwareContextInterface -> MinkAwareInterface
This commit is contained in:
@@ -11,7 +11,7 @@ use Behat\Behat\Context\Initializer\InitializerInterface,
|
|||||||
|
|
||||||
use Behat\Mink\Mink;
|
use Behat\Mink\Mink;
|
||||||
|
|
||||||
use Behat\MinkExtension\Context\MinkAwareContextInterface;
|
use Behat\MinkExtension\Context\MinkAwareInterface;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the Behat\MinkExtension.
|
* This file is part of the Behat\MinkExtension.
|
||||||
@@ -79,8 +79,8 @@ class MinkAwareInitializer implements InitializerInterface, EventSubscriberInter
|
|||||||
*/
|
*/
|
||||||
public function supports(ContextInterface $context)
|
public function supports(ContextInterface $context)
|
||||||
{
|
{
|
||||||
// if context/subcontext implements MinkAwareContextInterface
|
// if context/subcontext implements MinkAwareInterface
|
||||||
if ($context instanceof MinkAwareContextInterface) {
|
if ($context instanceof MinkAwareInterface) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use Behat\Mink\Mink;
|
|||||||
*
|
*
|
||||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||||
*/
|
*/
|
||||||
interface MinkAwareContextInterface
|
interface MinkAwareInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Sets Mink instance.
|
* Sets Mink instance.
|
||||||
@@ -470,16 +470,6 @@ trait MinkDictionary
|
|||||||
system(sprintf($this->getMinkParameter('show_cmd'), escapeshellarg($filename)));
|
system(sprintf($this->getMinkParameter('show_cmd'), escapeshellarg($filename)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns list of definition translation resources paths.
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getTranslationResources()
|
|
||||||
{
|
|
||||||
return $this->getMinkTranslationResources();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns list of definition translation resources paths for this dictionary.
|
* Returns list of definition translation resources paths for this dictionary.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ use Behat\Mink\Mink,
|
|||||||
*
|
*
|
||||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||||
*/
|
*/
|
||||||
class RawMinkContext extends BehatContext implements MinkAwareContextInterface
|
class RawMinkContext extends BehatContext implements MinkAwareInterface
|
||||||
{
|
{
|
||||||
private $mink;
|
private $mink;
|
||||||
private $minkParameters;
|
private $minkParameters;
|
||||||
|
|||||||
Reference in New Issue
Block a user