File tree 1 file changed +5
-4
lines changed
tests/AppBundle/Form/DataTransformer
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class TagArrayToStringTransformerTest extends \PHPUnit \Framework \TestCase
11
11
{
12
-
13
12
/**
14
13
* Get a mocked instance of the TagArrayToStringTransformer.
15
14
*
@@ -39,12 +38,14 @@ public function getMockedTransformer($findByReturn = [])
39
38
* Creates a new TagEntity instance.
40
39
*
41
40
* @param $name
41
+ *
42
42
* @return Tag
43
43
*/
44
44
public function createTag ($ name )
45
45
{
46
46
$ tag = new Tag ();
47
47
$ tag ->setName ($ name );
48
+
48
49
return $ tag ;
49
50
}
50
51
@@ -104,13 +105,13 @@ public function testUsesAlreadyDefinedTags()
104
105
/**
105
106
* Tags should be transformed into a string.
106
107
*/
107
- public function testTransform () {
108
+ public function testTransform ()
109
+ {
108
110
$ persisted_tags = [
109
111
$ this ->createTag ('Hello ' ),
110
112
$ this ->createTag ('World ' ),
111
113
];
112
114
$ transformed = $ this ->getMockedTransformer ()->transform ($ persisted_tags );
113
115
$ this ->assertSame ('Hello,World ' , $ transformed );
114
116
}
115
-
116
- }
117
+ }
You can’t perform that action at this time.
0 commit comments