diff --git a/tests/integration/frameworks/wordpress/test_wordpress_00.php b/tests/integration/frameworks/wordpress/test_wordpress_00.php index 946e497ba..46451d5b7 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_00.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_00.php @@ -9,8 +9,8 @@ - detect WordPress framework - name the web transaction as an 'Action' named after the template used to generate the page - detect custom plugins and themes - - generate hooks metrics for all callback functions executions; the execution time of callback - functions from wordpress core, custom plugins and themes is captured. + - generate hooks metrics only for plugins and themes callback functions executions; + only the execution time of callback functions from custom plugins and themes is captured. No errors should be generated. */ @@ -40,11 +40,11 @@ functions from wordpress core, custom plugins and themes is captured. Framework/WordPress/Plugin/mock-plugin2 Framework/WordPress/Plugin/mock-theme1 Framework/WordPress/Plugin/mock-theme2 -Framework/WordPress/Hook/wp_init -Framework/WordPress/Hook/the_content */ /*EXPECT_METRICS_DONT_EXIST +Framework/WordPress/Hook/wp_init +Framework/WordPress/Hook/the_content */ /*EXPECT_ERROR_EVENTS null */ diff --git a/tests/integration/frameworks/wordpress/test_wordpress_00.php7.php b/tests/integration/frameworks/wordpress/test_wordpress_00.php7.php index fa2cfa826..adc5d1970 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_00.php7.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_00.php7.php @@ -9,8 +9,8 @@ - detect WordPress framework - name the web transaction as an 'Action' named after the template used to generate the page - detect custom plugins and themes - - generate hooks metrics for all callback functions executions; the execution time of callback - functions from wordpress core, custom plugins and themes is captured. + - generate hooks metrics only for plugins and themes callback functions executions; + only the execution time of callback functions from custom plugins and themes is captured. No errors should be generated. */ @@ -32,11 +32,11 @@ functions from wordpress core, custom plugins and themes is captured. Framework/WordPress/Plugin/mock-plugin2 Framework/WordPress/Plugin/mock-theme1 Framework/WordPress/Plugin/mock-theme2 -Framework/WordPress/Hook/wp_init -Framework/WordPress/Hook/the_content */ /*EXPECT_METRICS_DONT_EXIST +Framework/WordPress/Hook/wp_init +Framework/WordPress/Hook/the_content */ /*EXPECT_ERROR_EVENTS null */ diff --git a/tests/integration/frameworks/wordpress/test_wordpress_00_1.php b/tests/integration/frameworks/wordpress/test_wordpress_00_1.php index c12a731de..8823a86e9 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_00_1.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_00_1.php @@ -10,8 +10,8 @@ - detect WordPress framework - name the web transaction as an 'Action' named after the template used to generate the page - detect custom plugins and themes - - generate hooks metrics for all callback functions executions; the execution time of callback - functions from wordpress core, custom plugins and themes is captured. + - generate hooks metrics only for plugins and themes callback functions executions; + only the execution time of callback functions from custom plugins and themes is captured. No errors should be generated. */ @@ -34,11 +34,11 @@ functions from wordpress core, custom plugins and themes is captured. Framework/WordPress/Plugin/mock-plugin2 Framework/WordPress/Plugin/mock-theme1 Framework/WordPress/Plugin/mock-theme2 -Framework/WordPress/Hook/wp_init -Framework/WordPress/Hook/the_content */ /*EXPECT_METRICS_DONT_EXIST +Framework/WordPress/Hook/wp_init +Framework/WordPress/Hook/the_content */ /*EXPECT_ERROR_EVENTS null */ diff --git a/tests/integration/frameworks/wordpress/test_wordpress_00_2.php b/tests/integration/frameworks/wordpress/test_wordpress_00_2.php index 3dc12e750..e7ec3b8d3 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_00_2.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_00_2.php @@ -10,8 +10,8 @@ - detect WordPress framework - name the web transaction as an 'Action' named after the template used to generate the page - detect custom plugins and themes - - generate hooks metrics for all callback functions executions; the execution time of callback - functions from wordpress core, custom plugins and themes is captured. + - generate hooks metrics only for plugins and themes callback functions executions; + only the execution time of callback functions from custom plugins and themes is captured. No errors should be generated. */ @@ -34,11 +34,11 @@ functions from wordpress core, custom plugins and themes is captured. Framework/WordPress/Plugin/mock-plugin2 Framework/WordPress/Plugin/mock-theme1 Framework/WordPress/Plugin/mock-theme2 -Framework/WordPress/Hook/wp_init -Framework/WordPress/Hook/the_content */ /*EXPECT_METRICS_DONT_EXIST +Framework/WordPress/Hook/wp_init +Framework/WordPress/Hook/the_content */ /*EXPECT_ERROR_EVENTS null */ diff --git a/tests/integration/frameworks/wordpress/test_wordpress_apply_filters.php b/tests/integration/frameworks/wordpress/test_wordpress_apply_filters.php index 9c2f84fa1..062f6d4e6 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_apply_filters.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_apply_filters.php @@ -8,8 +8,8 @@ The agent should properly instrument Wordpress apply_filters hooks. Since the mocked hooks are detected by the agent as WordPress core (plugin_from_function returns NULL), and WordPress core callbacks are not instrumented by default, -therefore newrelic.framework.wordpress.core needs to be set to true for the -agent to generate the hooks metrics. +therefore newrelic.framework.wordpress.hooks.options needs to be set to +"all_callbacks" for the agent to generate the hooks metrics. */ /*SKIPIF @@ -18,7 +18,7 @@ /*INI newrelic.framework = wordpress newrelic.framework.wordpress.hooks_threshold = 0 -newrelic.framework.wordpress.core = true +newrelic.framework.wordpress.hooks.options = all_callbacks */ /*EXPECT diff --git a/tests/integration/frameworks/wordpress/test_wordpress_do_action.php b/tests/integration/frameworks/wordpress/test_wordpress_do_action.php index cf3b1b50b..cad1bf607 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_do_action.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_do_action.php @@ -8,8 +8,8 @@ The agent should properly instrument Wordpress do_action hooks. Since the mocked hooks are detected by the agent as WordPress core (plugin_from_function returns NULL), and WordPress core callbacks are not instrumented by default, -therefore newrelic.framework.wordpress.core needs to be set to true for the -agent to generate the hooks metrics. +therefore newrelic.framework.wordpress.hooks.options needs to be set to +"all_callbacks" for the agent to generate the hooks metrics. */ /*SKIPIF @@ -17,8 +17,7 @@ /*INI newrelic.framework = wordpress -newrelic.framework.wordpress.hooks_threshold = 0 -newrelic.framework.wordpress.core = true +newrelic.framework.wordpress.hooks.options = all_callbacks */ /*EXPECT diff --git a/tests/integration/frameworks/wordpress/test_wordpress_transaction_name_hooks_on.php b/tests/integration/frameworks/wordpress/test_wordpress_transaction_name_hooks_on.php index 9ad96a5f7..71abe758f 100644 --- a/tests/integration/frameworks/wordpress/test_wordpress_transaction_name_hooks_on.php +++ b/tests/integration/frameworks/wordpress/test_wordpress_transaction_name_hooks_on.php @@ -11,17 +11,15 @@ metric should be generated and the hook function should be instrumented. However, since the mocked hooks are detected by the agent as WordPress core (plugin_from_function returns NULL), and WordPress core callbacks are not -instrumented by default, therefore newrelic.framework.wordpress.core needs -to be set to true for the agent to generate the hooks metrics. +instrumented by default, therefore therefore newrelic.framework.wordpress.hooks.options +needs to be set to "all_callbacks" for the agent to generate the hooks metrics. */ /*SKIPIF*/ /*INI newrelic.framework = wordpress -newrelic.framework.wordpress.hooks = true -newrelic.framework.wordpress.hooks_threshold = 0 -newrelic.framework.wordpress.core = true +newrelic.framework.wordpress.hooks.options = all_callbacks */ /*ENVIRONMENT