Skip to content

Commit 9c2dfcc

Browse files
committed
Merge commit '11243cfc22e9fa478b61604598e05b27b19ee300'
2 parents 1df3b71 + 11243cf commit 9c2dfcc

File tree

7 files changed

+68
-4
lines changed

7 files changed

+68
-4
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "fix: test since version replacement"
3+
pr: 13
4+
author: "jasonbahl"
5+
type: "fix"
6+
breaking: false
7+
description: |
8+
null
9+
---
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "feat: test updates to another file"
3+
pr: 15
4+
author: "jasonbahl"
5+
type: "feat"
6+
breaking: false
7+
description: |
8+
null
9+
---
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "fix: add missing docblock"
3+
pr: 16
4+
author: "jasonbahl"
5+
type: "fix"
6+
breaking: false
7+
description: |
8+
null
9+
---
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "fix: add missing comment"
3+
pr: 17
4+
author: "jasonbahl"
5+
type: "fix"
6+
breaking: false
7+
description: |
8+
null
9+
---
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "fix: cleanup"
3+
pr: 18
4+
author: "jasonbahl"
5+
type: "fix"
6+
breaking: false
7+
description: |
8+
null
9+
---

automation-tests.php

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@
66
* Author: Jason Bahl
77
*/
88

9+
/**
10+
* Added a missing docblock in @next-version
11+
*/
912
if ( ! defined( 'ABSPATH' ) ) {
1013
exit;
1114
}
1215

16+
// add missing comment in @next-version
1317
require_once __DIR__ . '/constants.php';
1418

1519
// show a message in the admin dashboard with the plugin name and version
1620
add_action( 'admin_notices', function() {
1721
echo '<div class="notice notice-info"><p>🌮 Automation Tests v' . AUTOMATION_TESTS_VERSION . '</p></div>';
1822
});
1923

20-
// New Feature 1
21-
2224
/**
2325
* Testing a new feature with a since tag
2426
*
@@ -56,5 +58,15 @@ function test_since_next_version_again_2() {
5658
* @deprecated 5.0.0 This function was deprecated when it was added because it was just a test.
5759
*/
5860
function test_since_next_version_again_3() {
59-
_deprecated_function( 'test_since_next_version_again_2', '5.0.0', '' )
61+
_deprecated_function( 'test_since_next_version_again_3', '5.0.0', '' )
62+
}
63+
64+
/**
65+
* Testing a new feature with a since tag
66+
*
67+
* @since todo
68+
* @deprecated @next-version This function was deprecated when it was added because it was just a test.
69+
*/
70+
function test_since_next_version_again_4() {
71+
_deprecated_function( 'test_since_next_version_again_4', '@next-version', '' )
6072
}

constants.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,11 @@
33
define('AUTOMATION_TESTS_VERSION', '5.0.0');
44
define('AUTOMATION_TESTS_PLUGIN_NAME', 'automation-tests');
55

6-
6+
/**
7+
* Another test that should replace the since and deprecation version placeholders upon release.
8+
9+
* @since next-version
10+
*/
11+
function another_since_replacement_test() {
12+
_deprecated_function( 'another_since_replacement_test', '@next-version', '' );
13+
}

0 commit comments

Comments
 (0)