Completed
Push — master ( 8827e6...300e34 )
by Nic
15s queued 12s
created

ProductTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 1
b 0
f 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetIsAvailable() 0 6 1
1
<?php
2
3
namespace Dynamic\Foxy\Test\Page;
4
5
use Dynamic\Foxy\Page\Product;
6
use SilverStripe\Dev\SapphireTest;
7
8
class ProductTest extends SapphireTest
9
{
10
    /**
11
     * @var string
12
     */
13
    protected static $fixture_file = 'product_test.yml';
14
15
    /**
16
     * @return void
17
     */
18
    public function testGetIsAvailable()
19
    {
20
        /** @var Product $product */
21
        $product = $this->objFromFixture(Product::class, 'productone');
22
23
        $this->assertTrue($product->getIsAvailable());
24
    }
25
}
26