ElementalEditMeButtonTest::TestDevBuild()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace SunnysideUp\ElementalEditMeButton;
4
5
use SilverStripe\Dev\SapphireTest;
6
7
/**
8
 * @internal
9
 * @coversNothing
10
 */
11
class ElementalEditMeButtonTest extends SapphireTest
12
{
13
    /**
14
     * @var bool
15
     */
16
    protected $usesDatabase = false;
17
18
    /**
19
     * @var array
20
     */
21
    protected $requiredExtensions = [];
22
23
    /**
24
     * Test the dev build.
25
     */
26
    public function TestDevBuild()
27
    {
28
        $exitStatus = shell_exec('php framework/cli-script.php dev/build flush=all  > dev/null; echo $?');
29
        $exitStatus = (int) trim($exitStatus);
30
        $this->assertSame(0, $exitStatus);
31
    }
32
}
33