FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BookStack/tests/HelpTest.php at development · codeasashu/BookStack · GitHub
codeasashu
/
BookStack
Public
forked from
BookStackApp/BookStack
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BookStack
/
tests
/
HelpTest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (19 loc) · 735 Bytes
Breadcrumbs
BookStack
/
tests
/
HelpTest.php
Copy path
File metadata and controls
23 lines (19 loc) · 735 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
namespace
Tests
;
class
HelpTest
extends
TestCase
{
public
function
test_wysiwyg_help_shows_tiny_and_tiny_license_link
()
{
$
resp
=
$
this
->
get
(
'
/help/wysiwyg
'
);
$
resp
->
assertOk
();
$
this
->
withHtml
(
$
resp
)->
assertElementExists
(
'
a[href="https://www.tiny.cloud/"]
'
);
$
this
->
withHtml
(
$
resp
)->
assertElementExists
(
'
a[href="
'
.
url
(
'
/libs/tinymce/license.txt
'
) .
'
"]
'
);
}
public
function
test_tiny_license_exists_where_expected
()
{
$
expectedPath
=
public_path
(
'
/libs/tinymce/license.txt
'
);
$
this
->
assertTrue
(
file_exists
(
$
expectedPath
));
$
contents
=
file_get_contents
(
$
expectedPath
);
$
this
->
assertStringContainsString
(
'
MIT License
'
,
$
contents
);
}
}
Back
|
FazBrowse Home
|
New Git URL