From 47564142e9cbea91e98a23932e2eb4f2c6c671a3 Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@gmail.com>
Date: Tue, 3 Feb 2015 03:53:40 +0000
Subject: [PATCH] create sym links before inserting a fixture otherwise the
 folders might not be there when trying to track

---
 plugins/TestRunner/Commands/TestsSetupFixture.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/plugins/TestRunner/Commands/TestsSetupFixture.php b/plugins/TestRunner/Commands/TestsSetupFixture.php
index e74719267c..f0195396b9 100644
--- a/plugins/TestRunner/Commands/TestsSetupFixture.php
+++ b/plugins/TestRunner/Commands/TestsSetupFixture.php
@@ -111,22 +111,23 @@ class TestsSetupFixture extends ConsoleCommand
             }
         }
 
+        if ($input->getOption('set-phantomjs-symlinks')) {
+            $this->createSymbolicLinksForUITests();
+        }
+
         $fixture = $this->createFixture($input, $allowSave = !empty($configDomainToSave));
 
         $this->setupDatabaseOverrides($input, $fixture);
 
         // perform setup and/or teardown
         if ($input->getOption('teardown')) {
+            exit;
             $fixture->getTestEnvironment()->save();
             $fixture->performTearDown();
         } else {
             $fixture->performSetUp();
         }
 
-        if ($input->getOption('set-phantomjs-symlinks')) {
-            $this->createSymbolicLinksForUITests();
-        }
-
         $this->writeSuccessMessage($output, array("Fixture successfully setup!"));
 
         $sqlDumpPath = $input->getOption('sqldump');
-- 
GitLab