Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Oct 24, 2023
1 parent 6e34dc9 commit c13bc7d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test-core-filters.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

class Core_Filters_Test extends WP_UnitTestCase {
public function test_vip_only_https_origins(): void {
$input = [
'http://example.com',
'https://example.com',
];

$expected = [
'https://example.com',
];

$actual = vip_only_https_origins( $input );
self::assertSame( $expected, $actual );
}
}

0 comments on commit c13bc7d

Please sign in to comment.