diff --git a/cookbook/testing/profiling.rst b/cookbook/testing/profiling.rst index 2ee70f00eae..c8f6c6cacf4 100644 --- a/cookbook/testing/profiling.rst +++ b/cookbook/testing/profiling.rst @@ -51,7 +51,7 @@ finish. It's easy to achieve if you embed the token in the error message:: $this->assertLessThan( 30, - $profile->get('db')->getQueryCount(), + $profile->getCollector('db')->getQueryCount(), sprintf( 'Checks that query count is less than 30 (token %s)', $profile->getToken()