From 27807b22597b347de632be0570cf62bed67bab45 Mon Sep 17 00:00:00 2001
From: Rachel Sidney <13515124@std.stei.itb.ac.id>
Date: Tue, 8 May 2018 17:34:30 +0700
Subject: [PATCH] fix test

---
 phpunit.xml                          | 2 +-
 tests/Feature/QuestionAnswerTest.php | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/phpunit.xml b/phpunit.xml
index df49f6f..bb9c4a7 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -10,7 +10,7 @@
          stopOnFailure="false">
     <testsuites>
         <testsuite name="Feature">
-            <directory suffix="AddMemberTest.php">./tests/Feature</directory>
+            <directory suffix="Test.php">./tests/Feature</directory>
         </testsuite>
 
         <testsuite name="Unit">
diff --git a/tests/Feature/QuestionAnswerTest.php b/tests/Feature/QuestionAnswerTest.php
index 4403406..ed2f499 100644
--- a/tests/Feature/QuestionAnswerTest.php
+++ b/tests/Feature/QuestionAnswerTest.php
@@ -119,10 +119,9 @@ class QuestionAnswerTest extends TestCase
                          ->see('Question Added');
         
         $dummy = Question::where('topic', 'Question for Testing')->first();
-        $written_on = 'Written on ' . $dummy->created_at->format('d M Y');
         $response = $this->actingAs($user)
                          ->visit('admin/questions')
-                         ->click($written_on)
+                         ->click('Question for Testing')
                          ->see('Written on')
                          ->see('Last Editted on')
                          ->see('by');
-- 
GitLab