src/package/Data/Repositories/Support/Helpers.php
protected function getScreenshots($test, $log)
    {
        $screenshots = $test->suite->tester->name !== 'dusk'
            ? $this->getOutput($test, $test->suite->tester->output_folder, $test->suite->tester->output_png_fail_extension)
            : $this->parseDuskScreenshots($log, $test->suite->tester->output_folder);

        if (is_null($screenshots)) {
            return;
        }

        $screenshots = collect($screenshots)->map(function ($path) use ($test) {
            return replace_suite_paths($test->suite, $path);
        });

        return json_encode($screenshots->toArray());
    }
protected function getScreenshots($test, $log)
    {
        $screenshots = $test->suite->tester->name !== 'dusk'
            ? $this->getOutput($test, $test->suite->tester->output_folder, $test->suite->tester->output_png_fail_extension)
            : $this->parseDuskScreenshots($log, $test->suite->tester->output_folder);

        if (is_null($screenshots)) {
            return;
        }

        $screenshots = collect($screenshots)->map(function ($path) use ($test) {
            return replace_suite_paths($test->suite, $path);
        });

        return json_encode($screenshots->toArray());
    }
protected function getScreenshots ( $ test , $ log ) { $ screenshots = $ test -> suite -> tester -> name !== 'dusk' ? $ this -> getOutput ( $ test , $ test -> suite -> tester -> output_folder , $ test -> suite -> tester -> output_png_fail_extension ) : $ this -> parseDuskScreenshots ( $ log , $ test -> suite -> tester -> output_folder ) ; if ( is_null ( $ screenshots ) ) { return ; } $ screenshots = collect ( $ screenshots ) -> map ( function ( $ path ) use ( $ test ) { return replace_suite_paths ( $ test -> suite , $ path ) ; } ) ; return json_encode ( $ screenshots -> toArray ( ) ) ; }
Get a list of png files to store in database.

@param $test
@param $log

@return null|string
Get a list of png files to store in database .