mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
test: relying on a third-party for avatar URL tests is unreliable (#3586)
This commit is contained in:
20
framework/core/.gitattributes
vendored
Normal file
20
framework/core/.gitattributes
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
**/.gitattributes export-ignore
|
||||||
|
**/.gitignore export-ignore
|
||||||
|
**/.gitmodules export-ignore
|
||||||
|
**/.github export-ignore
|
||||||
|
**/.travis export-ignore
|
||||||
|
**/.travis.yml export-ignore
|
||||||
|
**/.editorconfig export-ignore
|
||||||
|
**/.styleci.yml export-ignore
|
||||||
|
|
||||||
|
**/phpunit.xml export-ignore
|
||||||
|
**/tests export-ignore
|
||||||
|
|
||||||
|
**/js/dist/**/* -diff
|
||||||
|
**/js/dist/**/* linguist-generated
|
||||||
|
**/js/dist-typings/**/* -diff
|
||||||
|
**/js/dist-typings/**/* linguist-generated
|
||||||
|
**/js/yarn.lock -diff
|
||||||
|
**/js/package-lock.json -diff
|
||||||
|
|
||||||
|
* text=auto eol=lf
|
BIN
framework/core/tests/fixtures/assets/avatar.gif
vendored
Normal file
BIN
framework/core/tests/fixtures/assets/avatar.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
framework/core/tests/fixtures/assets/avatar.jpg
vendored
Normal file
BIN
framework/core/tests/fixtures/assets/avatar.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
framework/core/tests/fixtures/assets/avatar.png
vendored
Normal file
BIN
framework/core/tests/fixtures/assets/avatar.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
@@ -325,28 +325,28 @@ class CreateTest extends TestCase
|
|||||||
'username' => 'test1',
|
'username' => 'test1',
|
||||||
'email' => 'test1@machine.local',
|
'email' => 'test1@machine.local',
|
||||||
'is_email_confirmed' => 1,
|
'is_email_confirmed' => 1,
|
||||||
'avatar_url' => 'https://via.placeholder.com/150.png'
|
'avatar_url' => 'https://raw.githubusercontent.com/flarum/framework/main/framework/core/tests/fixtures/assets/avatar.png'
|
||||||
], []);
|
], []);
|
||||||
|
|
||||||
$regTokens[] = RegistrationToken::generate('flarum', '2', [
|
$regTokens[] = RegistrationToken::generate('flarum', '2', [
|
||||||
'username' => 'test2',
|
'username' => 'test2',
|
||||||
'email' => 'test2@machine.local',
|
'email' => 'test2@machine.local',
|
||||||
'is_email_confirmed' => 1,
|
'is_email_confirmed' => 1,
|
||||||
'avatar_url' => 'https://via.placeholder.com/150.jpg'
|
'avatar_url' => 'https://raw.githubusercontent.com/flarum/framework/main/framework/core/tests/fixtures/assets/avatar.jpg'
|
||||||
], []);
|
], []);
|
||||||
|
|
||||||
$regTokens[] = RegistrationToken::generate('flarum', '3', [
|
$regTokens[] = RegistrationToken::generate('flarum', '3', [
|
||||||
'username' => 'test3',
|
'username' => 'test3',
|
||||||
'email' => 'test3@machine.local',
|
'email' => 'test3@machine.local',
|
||||||
'is_email_confirmed' => 1,
|
'is_email_confirmed' => 1,
|
||||||
'avatar_url' => 'https://via.placeholder.com/150.gif'
|
'avatar_url' => 'https://raw.githubusercontent.com/flarum/framework/main/framework/core/tests/fixtures/assets/avatar.gif'
|
||||||
], []);
|
], []);
|
||||||
|
|
||||||
$regTokens[] = RegistrationToken::generate('flarum', '4', [
|
$regTokens[] = RegistrationToken::generate('flarum', '4', [
|
||||||
'username' => 'test4',
|
'username' => 'test4',
|
||||||
'email' => 'test4@machine.local',
|
'email' => 'test4@machine.local',
|
||||||
'is_email_confirmed' => 1,
|
'is_email_confirmed' => 1,
|
||||||
'avatar_url' => 'http://via.placeholder.com/150.png'
|
'avatar_url' => 'http://raw.githubusercontent.com/flarum/framework/main/framework/core/tests/fixtures/assets/avatar.png'
|
||||||
], []);
|
], []);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user