Skip to content

Commit ab57114

Browse files
committed
test
1 parent c198706 commit ab57114

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.devtools/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo "==============================="
3737
echo
3838

3939
info "Stopping previously started services, if any."
40-
killall -9 php >/dev/null 2>&1 || true
40+
#killall -9 php >/dev/null 2>&1 || true
4141

4242
info "Starting the PHP webserver."
4343
nohup php -S "${WEBSERVER_HOST}:${WEBSERVER_PORT}" -t "$(pwd)/build/web" "$(pwd)/build/web/.ht.router.php" >/tmp/php.log 2>&1 &

.scaffold/tests/phpunit/Functional/ScaffoldFunctionalTest.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@ public function testBasic() {
3131
$process->setEnv([
3232
'DRUPAL_EXTENSION_SCAFFOLD_NAME' => 'Hello Extension',
3333
]);
34-
$process->run();
35-
echo $process->getErrorOutput();
36-
echo $process->getOutput();
34+
$status = $process->run();
35+
$this->assertEquals(0, $status);
36+
$process = new Process(['ls', '-al'], $this->testDir);
37+
$status = $process->run();
38+
$this->assertEquals(0, $status);
39+
$process = new Process(['./.devtools/assemble.sh'], $this->testDir);
40+
$status = $process->run();
41+
$this->assertEquals(0, $status);
42+
$process = new Process(['./.devtools/start.sh'], $this->testDir);
43+
$status = $process->run();
44+
$this->assertEquals(0, $status);
3745
}
3846

3947
protected function tearDown(): void {

0 commit comments

Comments
 (0)