Skip to content

Commit

Permalink
QA: Reorder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 21, 2024
1 parent b6191dc commit 8b47f6b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/php/web/frontend/unittest/ViewTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ public function default_content_type() {
);
}

#[Test]
public function change_content_type() {
Assert::equals(
'image/png',
View::named('test')->type('image/png')->headers['Content-Type']
);
}

#[Test]
public function empty() {
Assert::null(View::empty()->template);
Expand All @@ -72,14 +80,6 @@ public function header() {
);
}

#[Test]
public function type() {
Assert::equals(
'image/png',
View::named('test')->type('image/png')->headers['Content-Type']
);
}

#[Test, Values(from: 'modifications')]
public function modified($date, $expected) {
Assert::equals($expected, View::named('test')->modified($date)->headers['Last-Modified']);
Expand Down

0 comments on commit 8b47f6b

Please sign in to comment.