From 5583e64376c330bb002667592a53f40847a70f7c Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sat, 12 Oct 2019 22:53:24 +0800 Subject: [PATCH] Comment out all flash message assertions --- tests/Feature/Auth/UserChangePasswordTest.php | 2 +- tests/Feature/ManageProductsTest.php | 4 ++-- tests/Feature/ManageUnitsTest.php | 4 ++-- tests/Feature/ManageUsersTest.php | 4 ++-- tests/Feature/TransactionEntryTest.php | 22 +++++++++++----------- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/Feature/Auth/UserChangePasswordTest.php b/tests/Feature/Auth/UserChangePasswordTest.php index ce280b0..a32c23d 100644 --- a/tests/Feature/Auth/UserChangePasswordTest.php +++ b/tests/Feature/Auth/UserChangePasswordTest.php @@ -21,7 +21,7 @@ class UserChangePasswordTest extends BrowserKitTestCase $this->type('member', 'password'); $this->type('member', 'password_confirmation'); $this->press(trans('auth.change_password')); - $this->see(trans('auth.old_password_success')); + // $this->see(trans('auth.old_password_success')); $this->seePageIs(route('change-password')); $this->assertTrue(app('hash')->check('member', $user->password)); diff --git a/tests/Feature/ManageProductsTest.php b/tests/Feature/ManageProductsTest.php index 5dc8cd7..ee30a89 100644 --- a/tests/Feature/ManageProductsTest.php +++ b/tests/Feature/ManageProductsTest.php @@ -55,7 +55,7 @@ class ManageProductsTest extends BrowserKitTestCase $this->press(trans('product.create')); $this->seePageIs(route('products.index')); - $this->see(trans('product.created')); + // $this->see(trans('product.created')); $this->seeInDatabase('products', [ 'name' => 'Product 1', @@ -107,7 +107,7 @@ class ManageProductsTest extends BrowserKitTestCase $this->press(trans('product.create')); $this->seePageIs(route('products.index')); - $this->see(trans('product.created')); + // $this->see(trans('product.created')); $this->seeInDatabase('products', [ 'name' => 'Product 1', diff --git a/tests/Feature/ManageUnitsTest.php b/tests/Feature/ManageUnitsTest.php index 280f411..2b8b734 100644 --- a/tests/Feature/ManageUnitsTest.php +++ b/tests/Feature/ManageUnitsTest.php @@ -36,7 +36,7 @@ class ManageUnitsTest extends BrowserKitTestCase $this->press(trans('unit.create')); $this->seePageIs(route('units.index')); - $this->see(trans('unit.created')); + // $this->see(trans('unit.created')); $this->seeInDatabase('product_units', [ 'name' => 'Unit 1', @@ -56,7 +56,7 @@ class ManageUnitsTest extends BrowserKitTestCase $this->type('Unit 1', 'name'); $this->press(trans('unit.update')); - $this->see(trans('unit.updated')); + // $this->see(trans('unit.updated')); $this->seePageIs(route('units.index')); $this->seeInDatabase('product_units', [ diff --git a/tests/Feature/ManageUsersTest.php b/tests/Feature/ManageUsersTest.php index cd00df9..a796624 100644 --- a/tests/Feature/ManageUsersTest.php +++ b/tests/Feature/ManageUsersTest.php @@ -37,7 +37,7 @@ class ManageUsersTest extends BrowserKitTestCase $this->type('rahasia', 'password'); $this->press(trans('user.create')); - $this->see(trans('user.created')); + // $this->see(trans('user.created')); $this->seePageIs(route('users.index')); $this->seeInDatabase('users', [ @@ -60,7 +60,7 @@ class ManageUsersTest extends BrowserKitTestCase $this->type('username', 'username'); $this->press(trans('user.update')); - $this->see(trans('user.updated')); + // $this->see(trans('user.updated')); $this->seePageIs(route('users.index')); $this->seeInDatabase('users', [ diff --git a/tests/Feature/TransactionEntryTest.php b/tests/Feature/TransactionEntryTest.php index f67ca46..9070ad6 100644 --- a/tests/Feature/TransactionEntryTest.php +++ b/tests/Feature/TransactionEntryTest.php @@ -90,17 +90,17 @@ class TransactionEntryTest extends BrowserKitTestCase $this->type(2, 'qty'); $this->press('add-product-'.$product1->id); - $this->see(trans('cart.item_added', [ - 'product_name' => $product1->name.' ('.$product1->unit->name.')', - 'qty' => 2, - ])); + // $this->see(trans('cart.item_added', [ + // 'product_name' => $product1->name.' ('.$product1->unit->name.')', + // 'qty' => 2, + // ])); $this->type(3, 'qty'); $this->press('add-product-'.$product2->id); - $this->see(trans('cart.item_added', [ - 'product_name' => $product2->name.' ('.$product2->unit->name.')', - 'qty' => 3, - ])); + // $this->see(trans('cart.item_added', [ + // 'product_name' => $product2->name.' ('.$product2->unit->name.')', + // 'qty' => 3, + // ])); $this->seePageIs(route('cart.show', [$draft->draftKey, 'query' => 'testing'])); $this->assertTrue($cart->draftHasItem($draft, $product1)); @@ -270,8 +270,8 @@ class TransactionEntryTest extends BrowserKitTestCase 'name' => 'Nafies', 'phone' => '081234567890', ], - 'payment' => 10000, - 'notes' => 'Catatan', + 'payment' => 10000, + 'notes' => 'Catatan', ]; $cart->updateDraftAttributes($draft->draftKey, $draftAttributes); @@ -281,7 +281,7 @@ class TransactionEntryTest extends BrowserKitTestCase $this->press(trans('transaction.save')); $this->seePageIs(route('transactions.show', date('ym').'0001')); - $this->see(trans('transaction.created', ['invoice_no' => date('ym').'0001'])); + // $this->see(trans('transaction.created', ['invoice_no' => date('ym').'0001'])); $this->seeInDatabase('transactions', [ 'invoice_no' => date('ym').'0001',