diff --git a/packages/support/src/Colors/Color.php b/packages/support/src/Colors/Color.php index c4faab0b1c..a035e383e3 100644 --- a/packages/support/src/Colors/Color.php +++ b/packages/support/src/Colors/Color.php @@ -379,7 +379,7 @@ class Color /** * @return array */ - public static function colors(): array + public static function all(): array { return [ 'slate' => static::Slate, diff --git a/tests/src/Support/ColorTest.php b/tests/src/Support/ColorTest.php index 4246de6900..5bbf9d38d1 100644 --- a/tests/src/Support/ColorTest.php +++ b/tests/src/Support/ColorTest.php @@ -74,6 +74,6 @@ test('get colors', function () { $colors[strtolower($name)] = $color; } - expect(Color::colors()) + expect(Color::all()) ->toBe($colors); });