Skip to content

Commit ac1aa13

Browse files
authored
Merge pull request #3891 from paulbalandan/split-model-testing
DX: Split Model testing into several subunits
2 parents 034e0c4 + 726e974 commit ac1aa13

17 files changed

+2256
-2722
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"autoload-dev": {
3838
"psr-4": {
39-
"Utils\\": "utils"
39+
"CodeIgniter\\": "tests/system/",
40+
"Utils\\": "utils/"
4041
}
4142
},
4243
"scripts": {

system/Database/MigrationRunner.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,9 @@ public function ensureTable()
957957
'null' => false,
958958
],
959959
'class' => [
960-
'type' => 'TEXT',
961-
'null' => false,
960+
'type' => 'VARCHAR',
961+
'constraint' => 255,
962+
'null' => false,
962963
],
963964
'group' => [
964965
'type' => 'VARCHAR',

tests/_support/Models/WithoutAutoincrementModel.php renamed to tests/_support/Models/WithoutAutoIncrementModel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Tests\Support\Models;
1+
<?php
2+
3+
namespace Tests\Support\Models;
24

35
use CodeIgniter\Model;
46

0 commit comments

Comments
 (0)