Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Comptoir
Comptoir-srv
Commits
2563865f
Commit
2563865f
authored
Jun 11, 2020
by
Fabrice Gangler
🎨
Browse files
TESTS: update fixtures
parent
a7b0d56e
Changes
4
Hide whitespace changes
Inline
Side-by-side
tests/Fixture/RelationshipsSoftwaresUsersFixture.php
View file @
2563865f
...
...
@@ -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
,
],
];
}
tests/Fixture/SoftwaresFixture.php
View file @
2563865f
...
...
@@ -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
();
...
...
tests/Fixture/TaxonomysSoftwaresFixture.php
View file @
2563865f
...
...
@@ -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
],
...
...
tests/Fixture/UsersFixture.php
View file @
2563865f
...
...
@@ -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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment