Page MenuHomeDevCentral

D616.id1511.diff
No OneTemporary

D616.id1511.diff

diff --git a/app/Internationalization/UserAttribute.php b/app/Internationalization/UserAttribute.php
--- a/app/Internationalization/UserAttribute.php
+++ b/app/Internationalization/UserAttribute.php
@@ -4,7 +4,7 @@
class UserAttribute extends LocalizableMessage {
- function __construct ($attribute) {
+ public function __construct ($attribute) {
$this->prefix = "panel.user-attributes.";
parent::__construct($attribute);
}
diff --git a/app/Services/FindableByAttribute.php b/app/Services/FindableByAttribute.php
--- a/app/Services/FindableByAttribute.php
+++ b/app/Services/FindableByAttribute.php
@@ -12,7 +12,7 @@
*
* If the attribute isn't unique, this method will return the first object found.
*/
- static function findBy ($attribute, $value) {
+ public static function findBy ($attribute, $value) {
$method = 'static::where' . ucfirst($attribute);
$object = call_user_func($method, $value)
->first(['*']);
diff --git a/tests/Console/Commands/DatabaseShellTest.php b/tests/Console/Commands/DatabaseShellTest.php
--- a/tests/Console/Commands/DatabaseShellTest.php
+++ b/tests/Console/Commands/DatabaseShellTest.php
@@ -24,7 +24,7 @@
/**
* @expectedException LogicException
*/
- function testLogicExceptionIsThrownWhenEngineIsUnknown () {
+ public function testLogicExceptionIsThrownWhenEngineIsUnknown () {
$formerEngine = Config::get('database.default');
Config::set('database.default', 'unknownsql');
diff --git a/tests/Controller/Auth/AuthControllerTest.php b/tests/Controller/Auth/AuthControllerTest.php
--- a/tests/Controller/Auth/AuthControllerTest.php
+++ b/tests/Controller/Auth/AuthControllerTest.php
@@ -10,7 +10,7 @@
*/
class AuthControllerTest extends TestCase {
- function testGetRoute () {
+ public function testGetRoute () {
$this->assertSame('/auth/login', AuthController::getRoute('login'));
$this->assertSame('/auth', AuthController::getRoute(''));
$this->assertSame('/auth', AuthController::getRoute(null));
diff --git a/tests/Helpers/RoutingTest.php b/tests/Helpers/RoutingTest.php
--- a/tests/Helpers/RoutingTest.php
+++ b/tests/Helpers/RoutingTest.php
@@ -6,7 +6,7 @@
class RoutingTest extends TestCase {
- function testGetRoute () {
+ public function testGetRoute () {
$this->assertStringEndsWith('/auth/login', authurl('login'));
$this->assertStringEndsWith('/auth', authurl());
$this->assertStringEndsWith('/auth', authurl(''));
diff --git a/tests/Models/UserTest.php b/tests/Models/UserTest.php
--- a/tests/Models/UserTest.php
+++ b/tests/Models/UserTest.php
@@ -10,7 +10,7 @@
*/
class UsersTest extends TestCase {
- function testTryGetFromExternalSource () {
+ public function testTryGetFromExternalSource () {
$this->assertFalse(
User::tryGetFromExternalSource('phantasialand', 'Fairy Tale Forest', $user)
);

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 10:43 (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248962
Default Alt Text
D616.id1511.diff (2 KB)

Event Timeline