We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2351c7c commit b5a48efCopy full SHA for b5a48ef
1 file changed
tests/Console/Commands/AssetsGeneratePresetsTest.php
@@ -72,6 +72,19 @@ public function it_only_generates_cp_thumbnail_presets_when_cp_thumbnail_filter_
72
Bus::assertNotDispatchedSync(GeneratePresetImageManipulation::class, fn ($job) => $job->preset === 'preset_two');
73
}
74
75
+ #[Test]
76
+ public function it_generates_nothing_when_cp_thumbnail_filter_is_used_but_cp_is_disabled()
77
+ {
78
+ config(['statamic.cp.enabled' => false]);
79
+
80
+ $this->makeContainer();
81
+ $this->putLandscapeImage();
82
83
+ $this->artisan('statamic:assets:generate-presets --preset=cp_thumbnail');
84
85
+ Bus::assertNotDispatchedSync(GeneratePresetImageManipulation::class);
86
+ }
87
88
#[Test]
89
public function it_generates_only_the_specified_preset()
90
{
0 commit comments