Skip to content

Commit 0eccc29

Browse files
committed
Revert "Added tests for IBX-3035" - Reverted Making createRenderStrategy static
This reverts commit 15bedfa.
1 parent 02dffc2 commit 0eccc29

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

tests/lib/MVC/Symfony/Templating/BaseRenderStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
abstract class BaseRenderStrategyTest extends TestCase
2626
{
27-
public static function createRenderStrategy(
27+
public function createRenderStrategy(
2828
string $typeClass,
2929
array $fragmentRenderers,
3030
string $defaultMethod = 'inline',

tests/lib/MVC/Symfony/Templating/RenderContentStrategyTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class RenderContentStrategyTest extends BaseRenderStrategyTest
2525
{
2626
public function testUnsupportedValueObject(): void
2727
{
28-
$renderContentStrategy = self::createRenderStrategy(
28+
$renderContentStrategy = $this->createRenderStrategy(
2929
RenderContentStrategy::class,
3030
[
3131
$this->createFragmentRenderer(),
@@ -42,7 +42,7 @@ public function testUnsupportedValueObject(): void
4242

4343
public function testDefaultFragmentRenderer(): void
4444
{
45-
$renderContentStrategy = self::createRenderStrategy(
45+
$renderContentStrategy = $this->createRenderStrategy(
4646
RenderContentStrategy::class,
4747
[
4848
$this->createFragmentRenderer('inline'),
@@ -61,7 +61,7 @@ public function testDefaultFragmentRenderer(): void
6161

6262
public function testUnknownFragmentRenderer(): void
6363
{
64-
$renderContentStrategy = self::createRenderStrategy(
64+
$renderContentStrategy = $this->createRenderStrategy(
6565
RenderContentStrategy::class,
6666
[],
6767
);
@@ -75,7 +75,7 @@ public function testUnknownFragmentRenderer(): void
7575

7676
public function testMultipleFragmentRenderers(): void
7777
{
78-
$renderContentStrategy = self::createRenderStrategy(
78+
$renderContentStrategy = $this->createRenderStrategy(
7979
RenderContentStrategy::class,
8080
[
8181
$this->createFragmentRenderer('method_a'),
@@ -155,7 +155,7 @@ public static function forwardParamOptionsToFragmentRenderer(MockObject $fragmen
155155

156156
public function testDuplicatedFragmentRenderers(): void
157157
{
158-
$renderContentStrategy = self::createRenderStrategy(
158+
$renderContentStrategy = $this->createRenderStrategy(
159159
RenderContentStrategy::class,
160160
[
161161
$this->createFragmentRenderer('method_a', 'decorator service used'),
@@ -210,7 +210,7 @@ public function testExpectedMethodRenderArgumentsFormat(): void
210210
->with($controllerReferenceCallback, $requestCallback)
211211
->willReturn(new Response('some_rendered_content'));
212212

213-
$renderContentStrategy = self::createRenderStrategy(
213+
$renderContentStrategy = $this->createRenderStrategy(
214214
RenderContentStrategy::class,
215215
[
216216
$this->createFragmentRenderer('method_a'),

tests/lib/MVC/Symfony/Templating/RenderLocationStrategyTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RenderLocationStrategyTest extends BaseRenderStrategyTest
2323
{
2424
public function testUnsupportedValueObject(): void
2525
{
26-
$renderLocationStrategy = self::createRenderStrategy(
26+
$renderLocationStrategy = $this->createRenderStrategy(
2727
RenderLocationStrategy::class,
2828
[
2929
$this->createFragmentRenderer(),
@@ -40,7 +40,7 @@ public function testUnsupportedValueObject(): void
4040

4141
public function testDefaultFragmentRenderer(): void
4242
{
43-
$renderLocationStrategy = self::createRenderStrategy(
43+
$renderLocationStrategy = $this->createRenderStrategy(
4444
RenderLocationStrategy::class,
4545
[
4646
$this->createFragmentRenderer('inline'),
@@ -59,7 +59,7 @@ public function testDefaultFragmentRenderer(): void
5959

6060
public function testUnknownFragmentRenderer(): void
6161
{
62-
$renderLocationStrategy = self::createRenderStrategy(
62+
$renderLocationStrategy = $this->createRenderStrategy(
6363
RenderLocationStrategy::class,
6464
[],
6565
);
@@ -73,7 +73,7 @@ public function testUnknownFragmentRenderer(): void
7373

7474
public function testMultipleFragmentRenderers(): void
7575
{
76-
$renderLocationStrategy = self::createRenderStrategy(
76+
$renderLocationStrategy = $this->createRenderStrategy(
7777
RenderLocationStrategy::class,
7878
[
7979
$this->createFragmentRenderer('method_a'),
@@ -141,7 +141,7 @@ public function testExpectedMethodRenderRequestFormat(): void
141141
->with($controllerReferenceCallback, $requestCallback)
142142
->willReturn(new Response('some_rendered_content'));
143143

144-
$renderLocationStrategy = self::createRenderStrategy(
144+
$renderLocationStrategy = $this->createRenderStrategy(
145145
RenderLocationStrategy::class,
146146
[
147147
$this->createFragmentRenderer('method_a'),

0 commit comments

Comments
 (0)