how to test user login using testing?

I want to test user login and logout.

I created a test file(Uofloggingtest.php) in user module test.
It has following code.

What's a modern OO php developer to do?

Hello all,

I'm really struggling. I am a php developer who joined the php game after the release of php 5.2. I came up on strict, object-oriented design principles. I am in the unbreakable habit of writing code that can (and must) be unit tested (i.e., tested without bootstrapping the entire application). Global functions and variables are strictlly prohibited. Classes aren't used unless there is a clearly defined purpose for them, and yet, because purpose is always clearly defined, classes are *always* used.

As much as I have tried to pacify myself with the contemplation that, despite its antiquity and its preclusion of the usage of classes, Drupal may yet be thought of as adhering to some object-oriented principles. I've read the one article where the one guy talks about the few ways in which Drupal is a little bit object-oriented. I've taught myself the vocabulary of Drupal and done my best to map its components to their counterparts in a more object-oriented system. But it is to no avail. Drupal, from what I can tell--at least from the point of view of a module developer--is not, and will never be, object-oriented, because the overwhelming majority of Drupal developers and site administrators depend on it remaining what it is and has always been. Progress in the direction of OO is not wanted by the Drupal community, and therefore it will never, ever happen.

How to upgrade variables to the state system

Variables need to be converted to the new configuration system API/storage.

State API in Drupal 8

The State API provides a place for developers to store information about the system's state. State information differs from configuration in the following ways:

Please improve Drupal Help Document.

Hi All,

I'm pretty new to Drupal Development, Experience with Wordpress. As I'm a new bee, sometime I'm not able to work things out and like a every developer I go to Google to find the things that I'm missing while developing. Help that I prefer is Drupal help, but to my surprise I always see the code on help document and not actual help. Why I should come to Help document if I want to see code. I can see that code on my drupal setup. Help document should be explanatory about the function and not function code itself.

See wordpress help for example,

issues after installation of drupal 8 on wamp

i install drupal 8 on wamp server without any issues. after the installation i cant do anything. if i try to create content or click on anything, it takes me to server configuration screen. any ideas as to why?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x