public function LinkitProfileUICRUDTestCase::testDeleteProfile in Linkit 7.3
Delete a profile.
File
- test/
linkit_profile.test, line 106 - Tests for Linkit module.
Class
- LinkitProfileUICRUDTestCase
- Tests Linkit profile UI CRUD.
Code
public function testDeleteProfile() {
// Create a user and login.
$this->account = $this
->drupalCreateUser($this->admin_permissions);
$this
->drupalLogin($this->account);
// Create a profile that we will delete.
$this
->createProfile();
// Delete the created profile.
$this
->drupalPost('/admin/config/content/linkit/list/' . $this->_profile->name . '/delete', array(), t('Delete'));
$this
->assertRaw(t('The item has been deleted.'), 'The profile was deleted.');
}