Skip to content

Commit 3daaa12

Browse files
authored
Merge pull request #537 from ProgressPlanner/ari/fix-phpcs-deprecation
Fix tests deprecation
2 parents 2f89b89 + 2f85d66 commit 3daaa12

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/phpunit/test-class-content-activity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function test_get_points_for_nonexistent_post(): void {
5252
*/
5353
public function test_points_decay_over_time( $days_ago, $expected_ratio ): void {
5454
// Create a test post.
55-
$post_id = $this->factory->post->create(
55+
$post_id = $this->factory()->post->create(
5656
[
5757
'post_content' => 'Test content',
5858
'post_status' => 'publish',
@@ -96,7 +96,7 @@ public function age_decay_provider(): array {
9696
* @return void
9797
*/
9898
public function test_points_caching(): void {
99-
$post_id = $this->factory->post->create(
99+
$post_id = $this->factory()->post->create(
100100
[
101101
'post_content' => 'Test content',
102102
'post_status' => 'publish',
@@ -125,7 +125,7 @@ public function test_points_caching(): void {
125125
* @return void
126126
*/
127127
public function test_different_activity_types(): void {
128-
$post_id = $this->factory->post->create(
128+
$post_id = $this->factory()->post->create(
129129
[
130130
'post_content' => 'Test content',
131131
'post_status' => 'publish',

0 commit comments

Comments
 (0)