*/
TEXT,
[
- 'id' => 'test',
- 'name' => 'Test Addon',
+ 'id' => 'test',
+ 'name' => 'Test Addon',
'description' => 'adds awesome features to friendica',
'maintainers' => [
['name' => 'Robin'],
],
'version' => '100.4.50-beta.5',
- 'status' => 'beta',
+ 'status' => 'beta',
],
],
'without-maintainer' => [
*/
TEXT,
[
- 'id' => 'test',
- 'name' => 'Test Addon',
+ 'id' => 'test',
+ 'name' => 'Test Addon',
'description' => 'adds awesome features to friendica',
- 'authors' => [
+ 'authors' => [
['name' => 'Sam'],
],
'version' => '100.4.50-beta.5',
- 'status' => 'beta',
+ 'status' => 'beta',
],
],
'complete' => [
*/
TEXT,
[
- 'id' => 'test',
- 'name' => 'Test Addon',
+ 'id' => 'test',
+ 'name' => 'Test Addon',
'description' => 'adds awesome features to friendica',
- 'authors' => [
+ 'authors' => [
['name' => 'Sam'],
['name' => 'Sam With Mail', 'link' => 'mail@example.org'],
],
['name' => 'Robin With Profile', 'link' => 'https://example.org/profile/robin'],
],
'version' => '100.4.50-beta.5',
- 'status' => 'beta',
+ 'status' => 'beta',
],
],
];
);
$data = [
- 'id' => $info->getId(),
- 'name' => $info->getName(),
+ 'id' => $info->getId(),
+ 'name' => $info->getName(),
'description' => $info->getDescription(),
- 'authors' => $info->getAuthors(),
+ 'authors' => $info->getAuthors(),
'maintainers' => $info->getMaintainers(),
- 'version' => $info->getVersion(),
- 'status' => $info->getStatus(),
+ 'version' => $info->getVersion(),
+ 'status' => $info->getStatus(),
];
$this->assertSame($expected, $data);
$config->method('get')->willReturn([
'helloaddon' => [
'last_update' => 1738760499,
- 'admin' => false,
+ 'admin' => false,
],
]);
$config->method('get')->willReturn([
'helloaddon' => [
'last_update' => 1738760499,
- 'admin' => false,
+ 'admin' => false,
],
]);
$config->method('get')->willReturn([
'helloaddon' => [
'last_update' => 1738760499,
- 'admin' => false,
+ 'admin' => false,
],
'addonwithadminsettings' => [
'last_update' => 1738760499,
- 'admin' => true,
+ 'admin' => true,
],
]);
$config->method('get')->willReturn([
'helloaddon' => [
'last_update' => 1234567890,
- 'admin' => false,
+ 'admin' => false,
],
]);
$config->method('get')->willReturn([
$addonName => [
'last_update' => 0,
- 'admin' => false,
+ 'admin' => false,
],
]);