Skip to content

Commit

Permalink
feat (afup#1110): functional test compta attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Oct 20, 2023
1 parent bb246c2 commit 20fcdaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions db/seeds/Compta.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ class Compta extends AbstractSeed
{
public function run()
{
if (!is_dir('htdocs/uploads/202310/')) {
mkdir('htdocs/uploads/202310/');
$dir = 'htdocs/uploads/202310/';
if (!mkdir($dir) && !is_dir($dir)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
}

copy('tests/behat/files/test_file1.pdf', 'htdocs/uploads/202310/test_file1.pdf');
copy('tests/behat/files/test_file1.pdf', $dir.'test_file1.pdf');

$data = [
[
Expand Down

0 comments on commit 20fcdaa

Please sign in to comment.