@@ -78,8 +78,8 @@ public static function argumentProvider(): array
7878 }
7979
8080 /**
81- * @param array $arguments
82- * @param string $expectedResult
81+ * @param array $arguments
82+ * @param string $expectedResult
8383 */
8484 #[DataProvider('argumentProvider ' )]
8585 public function testMapWorksWithArgumentsAndWithoutOptions (array $ arguments , string $ expectedResult ): void
@@ -93,7 +93,18 @@ public function testMapWorksWithArgumentsAndWithoutOptions(array $arguments, str
9393
9494 $ result = $ this ->mapper ->map ($ data );
9595 $ this ->assertCount (1 , $ result );
96- $ this ->assertStringContainsString (sprintf ("\$table->bigInteger(%s); " , "'id' " . $ expectedResult ), $ result [0 ]);
96+ $ this ->assertStringContainsString (sprintf ("\$table->bigInteger(%s); " , "'id' " .$ expectedResult ), $ result [0 ]);
97+ }
98+
99+ public function testMapWorkWithoutArgumentsAndWithoutOptions (): void
100+ {
101+ $ field = new FieldEntity ();
102+ $ field ->setType ('bigInteger ' );
103+ $ field ->setColumnName ('id ' );
104+ $ data = [$ field ];
105+ $ result = $ this ->mapper ->map ($ data );
106+ $ this ->assertCount (1 , $ result );
107+ $ this ->assertStringContainsString ("\$table->bigInteger('id'); " , $ result [0 ]);
97108 }
98109
99110 public static function optionProvider (): array
@@ -139,8 +150,8 @@ public static function optionProvider(): array
139150 }
140151
141152 /**
142- * @param array $options
143- * @param string $expectedResult
153+ * @param array $options
154+ * @param string $expectedResult
144155 */
145156 #[DataProvider('optionProvider ' )]
146157 public function testMapWorksWithArgumentsAndWithOptions (array $ options , string $ expectedResult ): void
0 commit comments