Skip to content

Commit

Permalink
refactoring of seeds to tests. [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Nov 14, 2023
1 parent 4d5d7e3 commit 2a59835
Show file tree
Hide file tree
Showing 24 changed files with 207 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .cfmigrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"contentbox": {
"manager": "cfmigrations.models.QBMigrationManager",
"migrationsDirectory": "modules/contentbox/migrations/",
"seedsDirectory": "modules/contentbox/seeds/",
"seedsDirectory": "tests/resources/seeds/",
"properties": {
"defaultGrammar": "AutoDiscover@qb",
"schema" : "${DB_DATABASE}",
Expand Down
13 changes: 13 additions & 0 deletions tests/resources/seeds/TestFixtures.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This seeder is used to seed the database with the initial data
* that all tests run against. Keep adding to it for new use cases.
*
* This is run usually after the initial migrations have ran!
*/
component{

function run( qb, mockData ){

}

}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
366 changes: 193 additions & 173 deletions tests/resources/sql/mysql/contentbox.sql

Large diffs are not rendered by default.

0 comments on commit 2a59835

Please sign in to comment.