We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e86d0d commit 17c3605Copy full SHA for 17c3605
tests/src/Commands/ModelCode.php
@@ -146,6 +146,23 @@ public static function getLatLngAttributes(): array
146
}'));
147
});
148
149
+it ('outputs the get computed location model-code', function () {
150
+ $this->artisan(
151
+ 'filament-google-maps:model-code',
152
+ [
153
+ 'model' => 'Cheesegrits/FilamentGoogleMaps/Tests/Models/LocationFillable',
154
+ '--lat' => 'lat',
155
+ '--lng' => 'lng',
156
+ '--location' => 'location',
157
+ ]
158
+ )
159
+ ->expectsOutputToContain(convertNewlines('
160
+ public static function getComputedLocation(): string
161
+ {
162
+ return \'location\';
163
+ }'));
164
+});
165
+
166
function convertNewlines($text)
167
{
168
$text = implode("\n", explode("\r\n", $text));
0 commit comments