Skip to content
This repository was archived by the owner on Sep 27, 2022. It is now read-only.

Commit 1c89c6d

Browse files
author
Sandeesh
committed
Small code clean-ups in tests.
1 parent b132ff2 commit 1c89c6d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/Feature/Api/ArticleCreateTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,7 @@ public function it_returns_appropriate_field_validation_errors_when_creating_a_n
9494
/** @test */
9595
public function it_returns_an_unauthorized_error_when_trying_to_add_article_without_logging_in()
9696
{
97-
$data = [
98-
'article' => [
99-
'title' => 'test title',
100-
'description' => 'test description',
101-
'body' => 'test body with random text',
102-
]
103-
];
104-
105-
$response = $this->postJson('/api/articles', $data);
97+
$response = $this->postJson('/api/articles', []);
10698

10799
$response->assertStatus(401);
108100
}

tests/Feature/Api/ProfileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function it_returns_the_profile_following_property_accordingly_when_follo
6666
}
6767

6868
/** @test */
69-
public function it_returns_a_not_found_error_when_trying_to_follow_and_unfollow_a_invalid_user()
69+
public function it_returns_a_not_found_error_when_trying_to_follow_and_unfollow_an_invalid_user()
7070
{
7171
$response = $this->postJson("/api/profiles/somerandomusername/follow", [], $this->headers);
7272

0 commit comments

Comments
 (0)