File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 2222
2323afterEach (function () {
2424 if ($ this ->author ->image ) {
25- Storage::disk ('public ' )->delete ('blog/ ' . $ this ->author ->image );
25+ Storage::disk ('public ' )->delete ('blog/ ' . $ this ->author ->image );
2626 }
2727});
2828
7676});
7777
7878test ('author edit page can be rendered ' , function () {
79- $ response = $ this ->loggedRequest ->get ('/admin/blog-author/ ' . $ this ->author ->id . '/edit ' );
79+ $ response = $ this ->loggedRequest ->get ('/admin/blog-author/ ' . $ this ->author ->id . '/edit ' );
8080
8181 $ response ->assertStatus (200 );
8282
9999});
100100
101101test ('author can be updated ' , function () {
102- $ response = $ this ->loggedRequest ->put ('/admin/blog-author/ ' . $ this ->author ->id , [
102+ $ response = $ this ->loggedRequest ->put ('/admin/blog-author/ ' . $ this ->author ->id , [
103103 'name ' => 'New Name ' ,
104104 'email ' => 'new@email.com ' ,
105105 ]);
125125});
126126
127127test ('author can be deleted ' , function () {
128- $ response = $ this ->loggedRequest ->delete ('/admin/blog-author/ ' . $ this ->user ->id );
128+ $ response = $ this ->loggedRequest ->delete ('/admin/blog-author/ ' . $ this ->user ->id );
129129
130130 $ response ->assertRedirect ('/admin/blog-author ' );
131131
Original file line number Diff line number Diff line change 2323
2424afterEach (function () {
2525 if ($ this ->category ->image ) {
26- Storage::disk ('public ' )->delete ('blog/ ' . $ this ->category ->image );
26+ Storage::disk ('public ' )->delete ('blog/ ' . $ this ->category ->image );
2727 }
2828});
2929
7575});
7676
7777test ('category edit page can be rendered ' , function () {
78- $ response = $ this ->loggedRequest ->get ('/admin/blog-category/ ' . $ this ->category ->id . '/edit ' );
78+ $ response = $ this ->loggedRequest ->get ('/admin/blog-category/ ' . $ this ->category ->id . '/edit ' );
7979
8080 $ response ->assertStatus (200 );
8181
9999});
100100
101101test ('category can be updated ' , function () {
102- $ response = $ this ->loggedRequest ->put ('/admin/blog-category/ ' . $ this ->category ->id , [
102+ $ response = $ this ->loggedRequest ->put ('/admin/blog-category/ ' . $ this ->category ->id , [
103103 'name ' => 'New Name ' ,
104104 'is_visible ' => true ,
105105 ]);
123123});
124124
125125test ('category can be deleted ' , function () {
126- $ response = $ this ->loggedRequest ->delete ('/admin/blog-category/ ' . $ this ->user ->id );
126+ $ response = $ this ->loggedRequest ->delete ('/admin/blog-category/ ' . $ this ->user ->id );
127127
128128 $ response ->assertRedirect ('/admin/blog-category ' );
129129
Original file line number Diff line number Diff line change 2222
2323afterEach (function () {
2424 if ($ this ->post ->image ) {
25- Storage::disk ('public ' )->delete ('blog/ ' . $ this ->post ->image );
25+ Storage::disk ('public ' )->delete ('blog/ ' . $ this ->post ->image );
2626 }
2727});
2828
7777});
7878
7979test ('post edit page can be rendered ' , function () {
80- $ response = $ this ->loggedRequest ->get ('/admin/blog-post/ ' . $ this ->post ->id . '/edit ' );
80+ $ response = $ this ->loggedRequest ->get ('/admin/blog-post/ ' . $ this ->post ->id . '/edit ' );
8181
8282 $ response ->assertStatus (200 );
8383
104104});
105105
106106test ('post can be updated ' , function () {
107- $ response = $ this ->loggedRequest ->put ('/admin/blog-post/ ' . $ this ->post ->id , [
107+ $ response = $ this ->loggedRequest ->put ('/admin/blog-post/ ' . $ this ->post ->id , [
108108 'blog_author_id ' => null ,
109109 'blog_category_id ' => null ,
110110 'title ' => 'New Post Title ' ,
133133});
134134
135135test ('post can be deleted ' , function () {
136- $ response = $ this ->loggedRequest ->delete ('/admin/blog-post/ ' . $ this ->user ->id );
136+ $ response = $ this ->loggedRequest ->delete ('/admin/blog-post/ ' . $ this ->user ->id );
137137
138138 $ response ->assertRedirect ('/admin/blog-post ' );
139139
You can’t perform that action at this time.
0 commit comments