File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
tests/AppBundle/Form/DataTransformer Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 99
1010class TagArrayToStringTransformerTest extends \PHPUnit \Framework \TestCase
1111{
12-
1312 /**
1413 * Get a mocked instance of the TagArrayToStringTransformer.
1514 *
@@ -39,12 +38,14 @@ public function getMockedTransformer($findByReturn = [])
3938 * Creates a new TagEntity instance.
4039 *
4140 * @param $name
41+ *
4242 * @return Tag
4343 */
4444 public function createTag ($ name )
4545 {
4646 $ tag = new Tag ();
4747 $ tag ->setName ($ name );
48+
4849 return $ tag ;
4950 }
5051
@@ -104,13 +105,13 @@ public function testUsesAlreadyDefinedTags()
104105 /**
105106 * Tags should be transformed into a string.
106107 */
107- public function testTransform () {
108+ public function testTransform ()
109+ {
108110 $ persisted_tags = [
109111 $ this ->createTag ('Hello ' ),
110112 $ this ->createTag ('World ' ),
111113 ];
112114 $ transformed = $ this ->getMockedTransformer ()->transform ($ persisted_tags );
113115 $ this ->assertSame ('Hello,World ' , $ transformed );
114116 }
115-
116- }
117+ }
You can’t perform that action at this time.
0 commit comments