|
@@ -22,7 +22,7 @@ discard block |
|
|
block discarded – undo |
|
22
|
22
|
{ |
|
23
|
23
|
$this->expectException(\InvalidArgumentException::class); |
|
24
|
24
|
|
|
25
|
|
- new Action(null, [], null, ['foo' => fn () => true]); |
|
|
25
|
+ new Action(null, [], null, ['foo' => fn() => true]); |
|
26
|
26
|
} |
|
27
|
27
|
|
|
28
|
28
|
/** |
|
@@ -43,11 +43,11 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
|
|
44
|
44
|
return [ |
|
45
|
45
|
'simple' => ['Button', null, [], null, null, "<button>Button</button>"], |
|
46
|
|
- 'with attributes' => ['Button', $attributes, [], null, null, "<button$str>Button</button>",], |
|
|
46
|
+ 'with attributes' => ['Button', $attributes, [], null, null, "<button$str>Button</button>", ], |
|
47
|
47
|
'missing translations' => ['Button', null, [], [], null, "<button>Button</button>"], |
|
48
|
48
|
'custom tag' => ['Button', null, [], null, 'mybutton', "<mybutton>Button</mybutton>"], |
|
49
|
49
|
'with translations' => ['Button', null, [], ['Button' => 'Gomb'], null, "<button>Gomb</button>"], |
|
50
|
|
- 'with callbacks' => ['Button', $attributes, $callbacks, null, null, "<button$str>Button</button>",], |
|
|
50
|
+ 'with callbacks' => ['Button', $attributes, $callbacks, null, null, "<button$str>Button</button>", ], |
|
51
|
51
|
]; |
|
52
|
52
|
} |
|
53
|
53
|
|
|
@@ -151,7 +151,7 @@ discard block |
|
|
block discarded – undo |
|
151
|
151
|
{ |
|
152
|
152
|
$this->expectException(LogicException::class); |
|
153
|
153
|
|
|
154
|
|
- $sut = new Action(null, [], ['foo' => new Attribute('foo')], ['foo' => fn () => true]); |
|
|
154
|
+ $sut = new Action(null, [], ['foo' => new Attribute('foo')], ['foo' => fn() => true]); |
|
155
|
155
|
|
|
156
|
156
|
$sut->removeAttribute('foo'); |
|
157
|
157
|
} |