Skip to content

Commit

Permalink
Fix test compatibility with 4.x components
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Aug 8, 2019
1 parent e95b8a3 commit bb3cb64
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ class FormExtensionBootstrap3HorizontalLayoutTest extends AbstractBootstrap3Hori
*/
private $renderer;

protected function setUp()
/**
* @before
*/
public function doSetUp()
{
parent::setUp();

$loader = new StubFilesystemLoader([
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTest
*/
private $renderer;

protected function setUp()
/**
* @before
*/
public function doSetUp()
{
parent::setUp();

$loader = new StubFilesystemLoader([
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ class FormExtensionBootstrap4HorizontalLayoutTest extends AbstractBootstrap4Hori

private $renderer;

protected function setUp()
/**
* @before
*/
public function doSetUp()
{
parent::setUp();

$loader = new StubFilesystemLoader([
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ class FormExtensionBootstrap4LayoutTest extends AbstractBootstrap4LayoutTest
*/
private $renderer;

protected function setUp()
/**
* @before
*/
public function doSetUp()
{
parent::setUp();

$loader = new StubFilesystemLoader([
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ class FormExtensionDivLayoutTest extends AbstractDivLayoutTest

protected static $supportedFeatureSetVersion = 304;

protected function setUp()
/**
* @before
*/
public function doSetUp()
{
parent::setUp();

$loader = new StubFilesystemLoader([
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ class FormExtensionTableLayoutTest extends AbstractTableLayoutTest

protected static $supportedFeatureSetVersion = 304;

protected function setUp()
/**
* @before
*/
public function doSetUp()
{
parent::setUp();

$loader = new StubFilesystemLoader([
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ protected function getExtensions()
]);
}

protected function tearDown()
/**
* @after
*/
public function doTearDown()
{
$this->engine = null;

parent::tearDown();
}

public function testStartTagHasNoActionAttributeWhenActionIsEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ protected function getExtensions()
]);
}

protected function tearDown()
/**
* @after
*/
public function doTearDown()
{
$this->engine = null;

parent::tearDown();
}

protected function renderForm(FormView $view, array $vars = [])
Expand Down

0 comments on commit bb3cb64

Please sign in to comment.