mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix test for CenterType (use fqdn in tests)
This commit is contained in:
parent
bce6916837
commit
7be5a95ab9
@ -23,6 +23,8 @@ use Symfony\Component\Form\Test\TypeTestCase;
|
|||||||
use Chill\MainBundle\Form\Type\CenterType;
|
use Chill\MainBundle\Form\Type\CenterType;
|
||||||
use Chill\MainBundle\Entity\User;
|
use Chill\MainBundle\Entity\User;
|
||||||
use Chill\MainBundle\Entity\GroupCenter;
|
use Chill\MainBundle\Entity\GroupCenter;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
|
||||||
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -48,7 +50,7 @@ class CenterTypeTest extends TypeTestCase
|
|||||||
|
|
||||||
$type = $this->prepareType($user);
|
$type = $this->prepareType($user);
|
||||||
|
|
||||||
$this->assertEquals('hidden', $type->getParent());
|
$this->assertEquals(HiddenType::class, $type->getParent());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -71,7 +73,7 @@ class CenterTypeTest extends TypeTestCase
|
|||||||
|
|
||||||
$type = $this->prepareType($user);
|
$type = $this->prepareType($user);
|
||||||
|
|
||||||
$this->assertEquals('hidden', $type->getParent());
|
$this->assertEquals(HiddenType::class, $type->getParent());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -96,7 +98,7 @@ class CenterTypeTest extends TypeTestCase
|
|||||||
|
|
||||||
$type = $this->prepareType($user);
|
$type = $this->prepareType($user);
|
||||||
|
|
||||||
$this->assertEquals('entity', $type->getParent());
|
$this->assertEquals(EntityType::class, $type->getParent());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user