Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2016-10-30 12:58:01 +0000
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
2af0021c2bda81d72bff13d4516b0de6d75a6c11
2af0021c
1 parent
0f2eaccb
Fixed image tests after amends to url system
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
tests/ImageTest.php
tests/ImageTest.php
View file @
2af0021
...
...
@@ -57,10 +57,12 @@ class ImageTest extends TestCase
$relPath
=
$this
->
uploadImage
(
$imageName
,
$page
->
id
);
$this
->
assertResponseOk
();
$this
->
assertTrue
(
file_exists
(
public_path
(
$relPath
)),
'Uploaded image exists'
);
$this
->
assertTrue
(
file_exists
(
public_path
(
$relPath
)),
'Uploaded image not found at path: '
.
public_path
(
$relPath
));
$this
->
deleteImage
(
$relPath
);
$this
->
seeInDatabase
(
'images'
,
[
'url'
=>
$relPath
,
'url'
=>
url
(
$relPath
)
,
'type'
=>
'gallery'
,
'uploaded_to'
=>
$page
->
id
,
'path'
=>
$relPath
,
...
...
@@ -68,8 +70,7 @@ class ImageTest extends TestCase
'updated_by'
=>
$admin
->
id
,
'name'
=>
$imageName
]);
$this
->
deleteImage
(
$relPath
);
}
public
function
test_image_delete
()
...
...
Please
register
or
sign in
to post a comment