Skip to content

Commit 3e43ea9

Browse files
committed
change test expectations for FA7 as initial default version
1 parent d9878e7 commit 3e43ea9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test-activation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function test_before_activation() {
3333
public function test_activation_creates_default_config() {
3434
FontAwesome_Activator::activate();
3535
$actual_options = get_option( FontAwesome::OPTIONS_KEY );
36-
$expected_options = array_merge( FontAwesome::DEFAULT_USER_OPTIONS, array( 'version' => fa()->latest_version_6() ) );
36+
$expected_options = array_merge( FontAwesome::DEFAULT_USER_OPTIONS, array( 'version' => fa()->latest_version_7() ) );
3737
$this->assertEquals( $expected_options, $actual_options );
3838

3939
$releases = FontAwesome_Release_Provider::get_option();
@@ -48,7 +48,7 @@ public function test_activation_creates_default_config() {
4848
public function test_initialize_from_scratch_creates_default_config() {
4949
FontAwesome_Activator::initialize();
5050
$actual_options = get_option( FontAwesome::OPTIONS_KEY );
51-
$expected_options = array_merge( FontAwesome::DEFAULT_USER_OPTIONS, array( 'version' => fa()->latest_version_6() ) );
51+
$expected_options = array_merge( FontAwesome::DEFAULT_USER_OPTIONS, array( 'version' => fa()->latest_version_7() ) );
5252
$this->assertEquals( $expected_options, $actual_options );
5353

5454
$this->assertEquals(
@@ -144,7 +144,7 @@ public function test_initialize_force_overwrites_with_defaults() {
144144
$initial_conflict_detection_option
145145
);
146146

147-
$expected_options = array_merge( FontAwesome::DEFAULT_USER_OPTIONS, array( 'version' => '6.7.2' ) );
147+
$expected_options = array_merge( FontAwesome::DEFAULT_USER_OPTIONS, array( 'version' => '7.0.0' ) );
148148

149149
FontAwesome_Activator::initialize( true );
150150
$actual_options = get_option( FontAwesome::OPTIONS_KEY );

tests/test-integration-release-provider-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function test_releases_caching() {
9393

9494
$enqueued_callback = function () use ( &$enqueued_count ) {
9595
++$enqueued_count;
96-
$this->assertEquals( fa()->latest_version_6(), fa()->version() );
96+
$this->assertEquals( fa()->latest_version_7(), fa()->version() );
9797
};
9898
add_action( 'font_awesome_enqueued', $enqueued_callback );
9999

0 commit comments

Comments
 (0)