Created
November 16, 2020 11:49
-
-
Save adelf/0d8e3a211ea6e216aa3e0e5b29f04e3b to your computer and use it in GitHub Desktop.
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
class StringEloquentTableNameTest: TestCase() { | |
fun testEmpty() { | |
assertEquals("", "".getEloquentTableNameFromFqn()) | |
} | |
fun testUser() { | |
assertEquals("users", "\\User".getEloquentTableNameFromFqn()) | |
} | |
fun testNamespacedUser() { | |
assertEquals("users", "\\App\\User".getEloquentTableNameFromFqn()) | |
} | |
fun testAuth() { | |
assertEquals("auths", "Auth".getEloquentTableNameFromFqn()) | |
} | |
fun testSomeUser() { | |
assertEquals("some_users", "SomeUser".getEloquentTableNameFromFqn()) | |
} | |
fun testQuiz() { | |
assertEquals("quizzes", "Quiz".getEloquentTableNameFromFqn()) | |
} | |
fun testIndex() { | |
assertEquals("indices", "index".getEloquentTableNameFromFqn()) | |
} | |
fun testChild() { | |
assertEquals("children", "Child".getEloquentTableNameFromFqn()) | |
} | |
fun testGold() { | |
assertEquals("gold", "Gold".getEloquentTableNameFromFqn()) | |
} | |
fun testNews() { | |
assertEquals("news", "News".getEloquentTableNameFromFqn()) | |
} | |
fun testKiplingese() { | |
assertEquals("kiplingese", "Kiplingese".getEloquentTableNameFromFqn()) | |
} | |
fun testRain() { | |
assertEquals("rain", "Rain".getEloquentTableNameFromFqn()) | |
} | |
fun testCheese() { | |
assertEquals("cheeses", "Cheese".getEloquentTableNameFromFqn()) | |
} | |
fun testStatus() { | |
assertEquals("statuses", "Status".getEloquentTableNameFromFqn()) | |
} | |
fun testBoomstatus() { | |
assertEquals("boomstatuses", "Boomstatus".getEloquentTableNameFromFqn()) | |
} | |
fun testMatrix() { | |
assertEquals("matrices", "Matrix".getEloquentTableNameFromFqn()) | |
} | |
fun testPerson() { | |
assertEquals("people", "Person".getEloquentTableNameFromFqn()) | |
} | |
fun testAlumnus() { | |
assertEquals("alumni", "Alumnus".getEloquentTableNameFromFqn()) | |
} | |
fun testPolice() { | |
assertEquals("police", "Police".getEloquentTableNameFromFqn()) | |
} | |
fun testMedia() { | |
assertEquals("media", "Media".getEloquentTableNameFromFqn()) | |
} | |
fun testComedia() { | |
assertEquals("comedia", "Comedia".getEloquentTableNameFromFqn()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment