Skip to content

Commit e4bcd76

Browse files
committed
Attempt to fix failing tests: memory exhaust (in phpunit --repeat 3) issue
1 parent db08939 commit e4bcd76

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/lib/AttributeResolver.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ protected function resolveJunctionTableProperty(PropertySchema $property, bool $
140140
->setPhpType($junkAttribute['phpType'])
141141
->setDbType($junkAttribute['dbType'])
142142
->setForeignKeyColumnName($property->fkColName)
143-
// ->setTableName($this->componentSchema->resolveTableName($this->schemaName))
144-
;
143+
->setTableName($this->componentSchema->resolveTableName($this->schemaName));
145144
$relation = Yii::createObject(AttributeRelation::class, [
146145
$property->getName(),
147146
$junkAttribute['relatedTableName'],
@@ -230,8 +229,7 @@ protected function resolveProperty(
230229
->setIsPrimary($property->isPrimaryKey())
231230
->setForeignKeyColumnName($property->fkColName)
232231
->setFakerStub($this->guessFakerStub($attribute, $property))
233-
// ->setTableName($this->componentSchema->resolveTableName($this->schemaName))
234-
;
232+
->setTableName($this->componentSchema->resolveTableName($this->schemaName));
235233
if ($property->isReference()) {
236234
if ($property->isVirtual()) {
237235
throw new InvalidDefinitionException('References not supported for virtual attributes');

tests/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
error_reporting(-1);
44
ini_set('display_errors', '1');
55
ini_set('display_startup_errors', '1');
6+
ini_set('memory_limit', '150M');
67

78
defined('YII_DEBUG') or define('YII_DEBUG', true);
89
defined('YII_ENV') or define('YII_ENV', 'test');

0 commit comments

Comments
 (0)