Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
UseraccountDelete
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 readResponse
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3/**
4 *
5 * @package Zmsadmin
6 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
7 *
8 */
9
10namespace BO\Zmsadmin;
11
12use BO\Mellon\Validator;
13use BO\Slim\Render;
14
15/**
16 * Delete an Useraccount
17 */
18class UseraccountDelete extends BaseController
19{
20    /**
21     *
22     * @return String
23     */
24    public function readResponse(
25        \Psr\Http\Message\RequestInterface $request,
26        \Psr\Http\Message\ResponseInterface $response,
27        array $args
28    ) {
29        $loginName = Validator::value($args['loginname'])->isString()->getValue();
30        \App::$http->readDeleteResult('/useraccount/' . $loginName . '/')->getEntity();
31        return \BO\Slim\Render::redirect(
32            'useraccount',
33            array(),
34            array(
35                'success' => 'useraccount_deleted'
36            )
37        );
38    }
39}