Jobby\Tests\BackgroundJobTest::testShouldCreateLogFolder PHP Method

testShouldCreateLogFolder() public method

    public function testShouldCreateLogFolder()
    {
        $logfile = dirname($this->logFile) . '/foo/bar.log';
        $this->runJob(['closure' => function () {
            echo 'foo bar';
        }, 'output' => $logfile]);
        $dirExists = file_exists(dirname($logfile));
        $isDir = is_dir(dirname($logfile));
        unlink($logfile);
        rmdir(dirname($logfile));
        $this->assertTrue($dirExists);
        $this->assertTrue($isDir);
    }