Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7057968
DiscountTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
DiscountTest.php
View Options
<?php
namespace
Tests\Feature
;
use
App\Discount
;
use
Tests\TestCase
;
class
DiscountTest
extends
TestCase
{
/**
* Test setting discount value
*/
public
function
testDiscountValueLessThanZero
():
void
{
$discount
=
new
Discount
();
$discount
->
discount
=
-
1
;
$this
->
assertTrue
(
$discount
->
discount
==
0
);
}
/**
* Test setting discount value
*/
public
function
testDiscountValueMoreThanHundred
():
void
{
$discount
=
new
Discount
();
$discount
->
discount
=
101
;
$this
->
assertTrue
(
$discount
->
discount
==
100
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 4:15 AM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
901229
Default Alt Text
DiscountTest.php (609 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment