Commit 2563865f authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

TESTS: update fixtures

parent a7b0d56e
......@@ -172,5 +172,19 @@ class RelationshipsSoftwaresUsersFixture extends TestFixture
"created"=> 1487084568,
"modified"=> 1487084568,
],
[
"software_id"=> 1,
"user_id"=> 5,
"relationship_id"=> 2,
"created"=> 1487084568,
"modified"=> 1487084568,
],
[
"software_id"=> 1,
"user_id"=> 10,
"relationship_id"=> 2,
"created"=> 1487084568,
"modified"=> 1487084568,
],
];
}
......@@ -231,6 +231,20 @@ class SoftwaresFixture extends TestFixture
'url_website' => 'http://www.fake-soft4.com',
'web_site_url' => null,
'tag_string' => ''
],
[
// 'id' => 5,
'softwarename' => 'Soft 5',
'url_repository' => 'http://www.fake-repo-soft555.git',
'description' => 'Description 5555 Lorem Ipsum',
'licence_id' => 1,
'created' => 1487084568,
'modified' => 1487084568,
'logo_directory' => TESTS . "TestFiles" . DS . "Softwares/photo/id3/avatar",
'photo' => "correctSoftwareLogo.jpg",
'url_website' => 'http://www.fake-soft5.com',
'web_site_url' => null,
'tag_string' => ''
]
];
parent::init();
......
......@@ -59,7 +59,7 @@ class TaxonomysSoftwaresFixture extends TestFixture
// 'id' => 2,
'taxonomy_id' => 3,
'software_id' => 1,
'user_id' => 4,
'user_id' => 5,
'created' => 1581686289,
'modified' => 1581686289
],
......@@ -67,7 +67,7 @@ class TaxonomysSoftwaresFixture extends TestFixture
// 'id' => 3,
'taxonomy_id' => 3,
'software_id' => 1,
'user_id' => 2,
'user_id' => 10,
'created' => 1581686289,
'modified' => 1581686289
],
......
......@@ -336,6 +336,23 @@ class UsersFixture extends TestFixture
"digest_hash" => $digestAdministration,
"token" => null
],
[
// "id" => 10,
"username" => "Administration 10 (avec role 'user')",
"created" => 1487084570,
"logo_directory" => TESTS . "TestFiles" . DS . "Users/photo/id3/avatar",
"url" => "http://www.admin10.org/",
"user_type_id" => 3,
"description" => "description",
"modified" => 1487084570,
"role" => "user",
"password" => "fake-password",
"email" => "fake-email-administration_10@comptoir-du-libre.org",
"photo" => "correctUserAvatar.jpg",
"active" => false,
"digest_hash" => $digestAdministration,
"token" => null
],
];
parent::init();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment