Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: testing redirect in controllers
Post: RE: testing redirect in controllers

Well, I guess I found a temporary solution. The ci_phpunit-test framework throws an exception and causes phpunit to consider it as a risky test. What I did is I did not throw the exception and saved i...
2,154 Views
1 Replies
05-11-2017, 01:47 PM
aaldhahe
    Thread: testing redirect in controllers
Post: testing redirect in controllers

here is the following method inside the controller I am trying to test: function index(){ if($this->session->userdata('userid')){ $data['username'] = $this->session->userdata('username'); $data['p...
2,154 Views
1 Replies
05-02-2017, 02:14 PM
aaldhahe
    Thread: Unit testing with database in CI 3.x
Post: RE: Unit testing with database in CI 3.x

InsiteFX Wrote: (03-16-2017, 12:29 PM) -- You would need to make an sql dump of the normal state then delete all tables and run the sql dump to put it back. You can do this using CodeIgniter Query...
5,482 Views
5 Replies
03-17-2017, 06:05 AM
aaldhahe
    Thread: Unit testing with database in CI 3.x
Post: RE: Unit testing with database in CI 3.x

InsiteFX Wrote: (03-15-2017, 03:07 PM) -- What do you mean by reinitialize MySQL Database? Back to an empty database or what? If it's back to an empty database then all you need to do is delete...
5,482 Views
5 Replies
03-16-2017, 06:21 AM
aaldhahe
    Thread: Unit testing with database in CI 3.x
Post: Unit testing with database in CI 3.x

Hello all, I have started writing Unit tests for an existing application. I am testing with database. I wanted to know if is there a way reinitialize MySQL back to its state before running the test...
5,482 Views
5 Replies
03-15-2017, 11:56 AM
aaldhahe
    Thread: CI_Session_database_driver class
Post: CI_Session_database_driver class

Hello everyone, I am having a problem and would like to seek some help. I am debugging an existing CI application with phpstorm. I have a redirect(controller_class) statement to another controller cla...
1,800 Views
0 Replies
02-02-2017, 09:56 AM
aaldhahe
    Thread: Unable to locate the specified class: Session.php
Post: Unable to locate the specified class: Session.php

I am upgrading from CI 2.2.0 to the latest version of CI. With the structure current CI systems files structure, I get the above error, which is unable to locate Session.php. How can I solve this prob...
2,604 Views
1 Replies
01-25-2017, 07:25 AM
aaldhahe
    Thread: Unit testing with codeigniter 2.2
Post: Unit testing with codeigniter 2.2

Hello all, I am taking over an existing application in codeigniter 2.2 and I have to perform unit testing. What are the possible frameworks available to integrate codeigniter 2.2 with phpunit? Also...
8,454 Views
7 Replies
01-20-2017, 02:05 PM
aaldhahe

Theme © iAndrew 2016 - Forum software by © MyBB