Browse Source

Merge pull request #12822 from cakephp/issue-9794

Use annotitations for integration trait setup/teardown
Mark Story 7 years ago
parent
commit
e2a6ad95d3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/TestSuite/IntegrationTestTrait.php

+ 4 - 4
src/TestSuite/IntegrationTestTrait.php

@@ -196,11 +196,11 @@ trait IntegrationTestTrait
     /**
      * Auto-detect if the HTTP middleware stack should be used.
      *
+     * @before
      * @return void
      */
-    public function setUp()
+    public function setupServer()
     {
-        parent::setUp();
         $namespace = Configure::read('App.namespace');
         $this->_useHttpServer = class_exists($namespace . '\Application');
     }
@@ -208,11 +208,11 @@ trait IntegrationTestTrait
     /**
      * Clears the state used for requests.
      *
+     * @after
      * @return void
      */
-    public function tearDown()
+    public function cleanup()
     {
-        parent::tearDown();
         $this->_request = [];
         $this->_session = [];
         $this->_cookie = [];