getConstant('BACKGROUND_PRESETS'); $this->assertIsArray($presets); $this->assertNotEmpty($presets); foreach ($presets as $key => $path) { $this->assertIsString($path); $this->assertNotSame('', $path); $this->assertFileExists(public_path($path), "Missing background asset for preset {$key}."); } } }