-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[setup] show extension in advanced config
- Loading branch information
Showing
13 changed files
with
176 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shimmie2; | ||
|
||
require_once "core/imageboard/image.php"; | ||
|
||
class ConfigTest extends ShimmiePHPUnitTestCase | ||
{ | ||
public function testConfigGroup(): void | ||
{ | ||
$conf = ConfigGroup::get_group_for_entry_by_name("comment_limit"); | ||
$this->assertNotNull($conf); | ||
$this->assertEquals(CommentConfig::LIMIT, $conf::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shimmie2; | ||
|
||
class BlotterConfig extends ConfigGroup | ||
{ | ||
public const VERSION = "blotter_version"; | ||
public const COLOR = "blotter_color"; | ||
public const POSITION = "blotter_position"; | ||
public const RECENT = "blotter_recent"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Shimmie2; | ||
|
||
class CommentConfig extends ConfigGroup | ||
{ | ||
public const VERSION = "ext_comments_version"; | ||
public const COUNT = "comment_count"; | ||
public const WINDOW = "comment_window"; | ||
public const LIMIT = "comment_limit"; | ||
public const LIST_COUNT = "comment_list_count"; | ||
public const CAPTCHA = "comment_captcha"; | ||
public const WORDPRESS_KEY = "comment_wordpress_key"; | ||
public const SHOW_REPEAT_ANONS = "comment_samefags_public"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.