Skip to content

Commit

Permalink
Remove deprecated color tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jan 24, 2025
1 parent 40e8b06 commit 993cf32
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions tests/Form/Fields/ColorFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,6 @@ public function testOptions()
['value' => '#bbb', 'text' => 'Color b'],
['value' => '#ccc', 'text' => 'Color c']
], $field->options());

// Deprecated: name => value
$field = $this->field('color', [
'options' => [
'Color a' => '#aaa',
'Color b' => '#bbb',
'Color c' => '#ccc'
],
]);

$this->assertSame([
['value' => '#aaa', 'text' => 'Color a'],
['value' => '#bbb', 'text' => 'Color b'],
['value' => '#ccc', 'text' => 'Color c']
], $field->options());
}

public function testOptionsFromQuery()
Expand Down Expand Up @@ -134,26 +119,5 @@ public function testOptionsFromQuery()
['value' => '#bbb', 'text' => 'Color b'],
['value' => '#ccc', 'text' => 'Color c']
], $field->options());

// Deprecated: name => value
$this->app = new App([
'options' => [
'foo' => [
'Color a' => '#aaa',
'Color b' => '#bbb',
'Color c' => '#ccc'
],
]
]);

$field = $this->field('color', [
'options' => ['type' => 'query', 'query' => 'kirby.option("foo")'],
]);

$this->assertSame([
['value' => '#aaa', 'text' => 'Color a'],
['value' => '#bbb', 'text' => 'Color b'],
['value' => '#ccc', 'text' => 'Color c']
], $field->options());
}
}

0 comments on commit 993cf32

Please sign in to comment.