fetchProfile example


    private Connection $connection;

    private string $oldMapping;

    protected function setUp(): void
    {
        parent::setUp();

        $this->connection = KernelLifecycleManager::getConnection();

        $profile = $this->fetchProfile();
        static::assertIsArray($profile);
        $this->oldMapping = $profile['mapping'];
    }

    protected function tearDown(): void
    {
        $profile = $this->fetchProfile();
        if (!$profile) {
            $this->createProfile();
        }
    }

    
Home | Imprint | This part of the site doesn't use cookies.