ProductTest::testGetIsAvailable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
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